Home » Testing » PHPUnit2 » Bug #7535
Lack of correct documentation
Details
| Submitted | 2006-05-01 18:05 UTC |
|---|---|
| From | chad at herballure dot com |
| Status | Bogus |
| Package | PHPUnit2 |
| PHP Version | 5.1.2 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2006-05-01 18:05 UTC] chad at herballure dot com
Description:
------------
PHPUnit2's user-level documentation is lacking, and the "pocket guide" is incorrect. I have found no information for what might be the correct way to use this, other than what is in the test case below. Google has been no help either. The test case below is pasted almost directly from chapter 7 of the pocket guide.
I don't know JUnit, as I don't deal with Java, and I can't find quickly anything about marking tests incomplete with them anyway.
Test script:
---------------
Place in 'SampleTest.php' and run the command 'phpunit SampleTest':
<?php
require_once 'PHPUnit2/Framework/TestCase.php';
class SampleTest extends PHPUnit2_Framework_TestCase
{
public function testSomething()
{
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
}
?>
Expected result:
----------------
Some sort of 'test incomplete' output.
Actual result:
--------------
PHPUnit 2.3.5 by Sebastian Bergmann.
Fatal error: Call to undefined method SampleTest::markTestIncomplete() in /(...)/SampleTest.php on line 8
[2006-05-01 20:07 UTC] sebastian at php dot net
Thank you for taking the time to write to us, but this is not
a bug.
You are trying to use a PHPUnit 3.0 feature with PHPUnit 2.3.