Sfoglia il codice sorgente

Skip Zend_Serializer_Adapter_PhpCode test of unserializing invalid input in PHP7+

Martin Hujer 10 anni fa
parent
commit
ec3df7ab1a
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      tests/Zend/Serializer/Adapter/PhpCodeTest.php

+ 3 - 0
tests/Zend/Serializer/Adapter/PhpCodeTest.php

@@ -141,6 +141,9 @@ class Zend_Serializer_Adapter_PhpCodeTest extends PHPUnit_Framework_TestCase
 
     public function testUnserialzeInvalid()
     {
+        if (version_compare(phpversion(), '7', '>=')) {
+            $this->markTestSkipped('Evaling of invalid input is PHP Parse error in PHP7+');
+        }
         $value = 'not a serialized string';
         $this->setExpectedException('Zend_Serializer_Exception');
         $this->_adapter->unserialize($value);