Преглед на файлове

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
         );
     }