PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Testing » PHPUnit2 » Bug #7535

Lack of correct documentation

Details

Submitted2006-05-01 18:05 UTC
Fromchad at herballure dot com
StatusBogus
PackagePHPUnit2
PHP Version5.1.2
OSLinux
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.