You are here

public function Util_TestDox_NamePrettifierTest::testTitleHasSensibleDefaults in Zircon Profile 8

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

@covers PHPUnit_Util_TestDox_NamePrettifier::prettifyTestClass

File

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

Class

Util_TestDox_NamePrettifierTest
@since Class available since Release 2.1.0

Code

public function testTitleHasSensibleDefaults() {
  $this
    ->assertEquals('Foo', $this->namePrettifier
    ->prettifyTestClass('FooTest'));
  $this
    ->assertEquals('Foo', $this->namePrettifier
    ->prettifyTestClass('TestFoo'));
  $this
    ->assertEquals('Foo', $this->namePrettifier
    ->prettifyTestClass('TestFooTest'));
  $this
    ->assertEquals('Foo', $this->namePrettifier
    ->prettifyTestClass('Test\\FooTest'));
}