Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.2

Bug #18213 Fatal error Assert not found
Submitted: 2011-01-24 03:56 UTC
From: godzinho Assigned:
Status: Open Package: PHPUnit (version 1.9.1)
PHP Version: 5.3.0 OS: Vista
Roadmaps: (Not assigned)    
Subscription  


 [2011-01-24 03:56 UTC] godzinho (cedric compeyron)
Description: ------------ Hello, I think I have a problem with the pear framework. I wrote a little test which extends the PHPUnit_Framework_TestCase and when I want to execute it, I have a fatal error. This appends because the PHPUnit_Framework_Assert class is not found at line 101 of the PHPUnit_Framework_TestCase class. Test script: --------------- <?php require_once "PHPUnit/Framework/TestCase.php"; class AddressTest extends PHPUnit_Framework_TestCase { protected $_address; protected function setUp(){ $this->_address = new Address("6", "rue des oiseaux", "RAS", "31000", "Toulouse", "France"); } public function testToString(){ $this->assertEquals("Toulouse(31000)",$this->_address->toString()); } } ?> Expected result: ---------------- I took this example on the pear's official website. phpunit AddressTest PHPUnit 3.0.0 by Sebastian Bergmann. .. Time: 00:00 OK (1 tests) Actual result: -------------- Fatal error: Class 'PHPUnit_Framework_Assert' not found in C:\wamp\bin\php\php5.3.0\PEAR\PHPUnit\Framework\TestCase.php on line 101 PHP Fatal error: Class 'PHPUnit_Framework_Assert' not found in C:\wamp\bin\php\php5.3.0\PEAR\PHPUnit\Framework\TestCase.php on line 101

Comments

 [2011-01-24 22:51 UTC] godzinho (cedric compeyron)
-Package Version: 1.3.2 +Package Version: 1.9.1