public function Util_TestDox_NamePrettifierTest::testCaterForUserDefinedSuffix in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/tests/Util/TestDox/NamePrettifierTest.php \Util_TestDox_NamePrettifierTest::testCaterForUserDefinedSuffix()
@covers PHPUnit_Util_TestDox_NamePrettifier::prettifyTestClass
File
- vendor/
phpunit/ phpunit/ tests/ Util/ TestDox/ NamePrettifierTest.php, line 37
Class
- Util_TestDox_NamePrettifierTest
- @since Class available since Release 2.1.0
Code
public function testCaterForUserDefinedSuffix() {
$this->namePrettifier
->setSuffix('TestCase');
$this->namePrettifier
->setPrefix(null);
$this
->assertEquals('Foo', $this->namePrettifier
->prettifyTestClass('FooTestCase'));
$this
->assertEquals('TestFoo', $this->namePrettifier
->prettifyTestClass('TestFoo'));
$this
->assertEquals('FooTest', $this->namePrettifier
->prettifyTestClass('FooTest'));
}