瀏覽代碼

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