2
0
Переглянути джерело

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 12 роки тому
батько
коміт
0d8cc41a3d
1 змінених файлів з 3 додано та 1 видалено
  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
         );
     }