You are here

public function Util_TestDox_NamePrettifierTest::testCaterForUserDefinedPrefix in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit/tests/Util/TestDox/NamePrettifierTest.php \Util_TestDox_NamePrettifierTest::testCaterForUserDefinedPrefix()

@covers PHPUnit_Util_TestDox_NamePrettifier::prettifyTestClass

File

vendor/phpunit/phpunit/tests/Util/TestDox/NamePrettifierTest.php, line 50

Class

Util_TestDox_NamePrettifierTest
@since Class available since Release 2.1.0

Code

public function testCaterForUserDefinedPrefix() {
  $this->namePrettifier
    ->setSuffix(null);
  $this->namePrettifier
    ->setPrefix('XXX');
  $this
    ->assertEquals('Foo', $this->namePrettifier
    ->prettifyTestClass('XXXFoo'));
  $this
    ->assertEquals('TestXXX', $this->namePrettifier
    ->prettifyTestClass('TestXXX'));
  $this
    ->assertEquals('XXX', $this->namePrettifier
    ->prettifyTestClass('XXXXXX'));
}