Issues

ZF-2665: Unittest Problem with Zend_Validate

Description

Running unittests throws a warning:


C:\Voxtronic\3rdParty\Zend Framework\tests>phpunit Zend_ValidateTest
PHPUnit 3.2.7 by Sebastian Bergmann.

......
Warning: Zend_Loader::include_once(Zend\Validate\UnknownValidator.php): failed t
o open stream: No such file or directory in C:\Voxtronic\3rdParty\Zend Framework
\library\Zend\Loader.php on line 83

Call Stack:
    0.0039     178248   1. {main}() C:\Voxtronic\3rdParty\php\PEAR\PHPUnit\TextU
I\Command.php:0
    1.9215    7735720   2. PHPUnit_TextUI_Command::main() C:\Voxtronic\3rdParty\
php\PEAR\PHPUnit\TextUI\Command.php:528
   26.5050    8147624   3. PHPUnit_TextUI_TestRunner->doRun() C:\Voxtronic\3rdPa
rty\php\PEAR\PHPUnit\TextUI\Command.php:112
   26.5053    8153872   4. PHPUnit_Framework_TestSuite->run() C:\Voxtronic\3rdPa
rty\php\PEAR\PHPUnit\TextUI\TestRunner.php:298
   26.6408    8381568   5. PHPUnit_Framework_TestSuite->runTest() C:\Voxtronic\3
rdParty\php\PEAR\PHPUnit\Framework\TestSuite.php:650
   26.6408    8381568   6. PHPUnit_Framework_TestCase->run() C:\Voxtronic\3rdPar
ty\php\PEAR\PHPUnit\Framework\TestSuite.php:670
   26.6408    8381568   7. PHPUnit_Framework_TestResult->run() C:\Voxtronic\3rdP
arty\php\PEAR\PHPUnit\Framework\TestCase.php:351
   26.6409    8383688   8. PHPUnit_Framework_TestCase->runBare() C:\Voxtronic\3r
dParty\php\PEAR\PHPUnit\Framework\TestResult.php:597
   26.6413    8417216   9. PHPUnit_Framework_TestCase->runTest() C:\Voxtronic\3r
dParty\php\PEAR\PHPUnit\Framework\TestCase.php:373
   26.6413    8418424  10. ReflectionMethod->invoke() C:\Voxtronic\3rdParty\php\
PEAR\PHPUnit\Framework\TestCase.php:445
   26.6413    8418424  11. Zend_ValidateTest->testStaticFactoryClassNotFound() C
:\Voxtronic\3rdParty\Zend Framework\tests\Zend\ValidateTest.php:0
   26.6413    8418792  12. Zend_Validate::is() C:\Voxtronic\3rdParty\Zend Framew
ork\tests\Zend\ValidateTest.php:146
   26.6420    8419664  13. Zend_Loader::loadClass() C:\Voxtronic\3rdParty\Zend F
ramework\library\Zend\Validate.php:148


Warning: Zend_Loader::include_once(): Failed opening 'Zend\Validate\UnknownValid
ator.php' for inclusion (include_path='C:\Voxtronic\3rdParty\Zend Framework\libr
ary;C:\Voxtronic\3rdParty\Zend Framework\tests;.;C:\Voxtronic\3rdParty\php\pear\
;C:\Voxtronic\3rdParty\Zend Framework\incubator\library;C:\Voxtronic\3rdParty\Ze
nd Framework\library;C:\Voxtronic\voxct_v3\web\library') in C:\Voxtronic\3rdPart
y\Zend Framework\library\Zend\Loader.php on line 83

Call Stack:
    0.0039     178248   1. {main}() C:\Voxtronic\3rdParty\php\PEAR\PHPUnit\TextU
I\Command.php:0
    1.9215    7735720   2. PHPUnit_TextUI_Command::main() C:\Voxtronic\3rdParty\
php\PEAR\PHPUnit\TextUI\Command.php:528
   26.5050    8147624   3. PHPUnit_TextUI_TestRunner->doRun() C:\Voxtronic\3rdPa
rty\php\PEAR\PHPUnit\TextUI\Command.php:112
   26.5053    8153872   4. PHPUnit_Framework_TestSuite->run() C:\Voxtronic\3rdPa
rty\php\PEAR\PHPUnit\TextUI\TestRunner.php:298
   26.6408    8381568   5. PHPUnit_Framework_TestSuite->runTest() C:\Voxtronic\3
rdParty\php\PEAR\PHPUnit\Framework\TestSuite.php:650
   26.6408    8381568   6. PHPUnit_Framework_TestCase->run() C:\Voxtronic\3rdPar
ty\php\PEAR\PHPUnit\Framework\TestSuite.php:670
   26.6408    8381568   7. PHPUnit_Framework_TestResult->run() C:\Voxtronic\3rdP
arty\php\PEAR\PHPUnit\Framework\TestCase.php:351
   26.6409    8383688   8. PHPUnit_Framework_TestCase->runBare() C:\Voxtronic\3r
dParty\php\PEAR\PHPUnit\Framework\TestResult.php:597
   26.6413    8417216   9. PHPUnit_Framework_TestCase->runTest() C:\Voxtronic\3r
dParty\php\PEAR\PHPUnit\Framework\TestCase.php:373
   26.6413    8418424  10. ReflectionMethod->invoke() C:\Voxtronic\3rdParty\php\
PEAR\PHPUnit\Framework\TestCase.php:445
   26.6413    8418424  11. Zend_ValidateTest->testStaticFactoryClassNotFound() C
:\Voxtronic\3rdParty\Zend Framework\tests\Zend\ValidateTest.php:0
   26.6413    8418792  12. Zend_Validate::is() C:\Voxtronic\3rdParty\Zend Framew
ork\tests\Zend\ValidateTest.php:146
   26.6420    8419664  13. Zend_Loader::loadClass() C:\Voxtronic\3rdParty\Zend F
ramework\library\Zend\Validate.php:148

.

Time: 0 seconds


OK (7 tests)

PHP 5.2.5, Windows XP, Trunk 8045

Comments

Resolved with SVN r8050.

Thanks for the report, Thomas! :)

Perfect ;-)