ZF-2623: Fatal error in unit tests - Class 'DateTime' not found

Description

  Zend_DateTest
  .......................
Fatal error: Class 'DateTime' not found in c:\Documents and Settings\dfelton\My Documents\SVN Remote\Zend Framework\bran
ch\release-1.0\library\Zend\Date\DateObject.php on line 345

Call Stack:
    0.0049   1. {main}() c:\wamp\php\PEAR\PHPUnit\TextUI\Command.php:0
    1.6399   2. PHPUnit_TextUI_Command::main() c:\wamp\php\PEAR\PHPUnit\TextUI\Command.php:528
   90.0171   3. PHPUnit_TextUI_TestRunner->doRun() c:\wamp\php\PEAR\PHPUnit\TextUI\Command.php:112
   90.0175   4. PHPUnit_Framework_TestSuite->run() C:\wamp\php\PEAR\PHPUnit\TextUI\TestRunner.php:295
   90.1166   5. PHPUnit_Framework_TestSuite->run() C:\wamp\php\PEAR\PHPUnit\Framework\TestSuite.php:647
  141.2057   6. PHPUnit_Framework_TestSuite->run() C:\wamp\php\PEAR\PHPUnit\Framework\TestSuite.php:647
  149.9736   7. PHPUnit_Framework_TestSuite->runTest() C:\wamp\php\PEAR\PHPUnit\Framework\TestSuite.php:664
  149.9736   8. PHPUnit_Framework_TestCase->run() C:\wamp\php\PEAR\PHPUnit\Framework\TestSuite.php:684
  149.9737   9. PHPUnit_Framework_TestResult->run() C:\wamp\php\PEAR\PHPUnit\Framework\TestCase.php:376
  149.9739  10. PHPUnit_Framework_TestCase->runBare() C:\wamp\php\PEAR\PHPUnit\Framework\TestResult.php:611
  149.9810  11. PHPUnit_Framework_TestCase->runTest() C:\wamp\php\PEAR\PHPUnit\Framework\TestCase.php:401
  149.9811  12. ReflectionMethod->invoke() C:\wamp\php\PEAR\PHPUnit\Framework\TestCase.php:476
  149.9811  13. Zend_DateTest->testSet2() c:\Documents and Settings\dfelton\My Documents\SVN Remote\Zend Framework\branc
h\release-1.0\tests\Zend\DateTest.php:0
  154.2289  14. Zend_Date->get() c:\Documents and Settings\dfelton\My Documents\SVN Remote\Zend Framework\branch\release
-1.0\tests\Zend\DateTest.php:1377
  154.2294  15. Zend_Date_DateObject->date() c:\Documents and Settings\dfelton\My Documents\SVN Remote\Zend Framework\br
anch\release-1.0\library\Zend\Date.php:1107

Results from WinXP, PHP 5.1.4, PHPUnit 3.2.13

Comments

Should be fixed with the latest branch. Can you please give it a try and respond ?

Bingo! :)

$ phpunit Zend_DateTest
PHPUnit 3.2.13 by Sebastian Bergmann.

............................................................ 60 / 90
..............................

Time: 55 seconds


OK (90 tests)

Thanks, Thomas! :)