Explorar el Código

This tests fails on parse error on PHP 5.2 as there is no namespace support.

This is a workaround which allows tests to start and be skipped.
Martin Hujer hace 12 años
padre
commit
0d8cc41a3d
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      tests/Zend/Form/Element/FileTest.php

+ 3 - 1
tests/Zend/Form/Element/FileTest.php

@@ -510,8 +510,10 @@ class Zend_Form_Element_FileTest extends PHPUnit_Framework_TestCase
         );
         $this->element->setTransferAdapter('Bar');
         $test = $this->element->getTransferAdapter();
+        
+        $expectedType = 'Zend\Form\Element\FileTest\Adapter\Bar';
         $this->assertTrue(
-            $test instanceof Zend\Form\Element\FileTest\Adapter\Bar
+            $test instanceof $expectedType
         );
     }