Issues

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

Issue Type: Unit Tests: Problem Created: 2008-02-12T08:29:04.000+0000 Last Updated: 2008-02-26T12:56:05.000+0000 Status: Resolved Fix version(s): - 1.0.4 (26/Feb/08)

Reporter: Darby Felton (darby) Assignee: Thomas Weidner (thomas) Tags: - Zend_Date

Related issues: Attachments:

Description

<pre class="literal">
  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

Posted by Thomas Weidner (thomas) on 2008-02-15T01:47:18.000+0000

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

Posted by Darby Felton (darby) on 2008-02-15T07:46:41.000+0000

Bingo! :)

<pre class="literal">
$ phpunit Zend_DateTest
PHPUnit 3.2.13 by Sebastian Bergmann.

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

Time: 55 seconds


OK (90 tests)

Posted by Darby Felton (darby) on 2008-02-15T07:47:20.000+0000

Thanks, Thomas! :)

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts