You are here

public function Util_TestDox_NamePrettifierTest::testTestNameIsConvertedToASentence 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::testTestNameIsConvertedToASentence()

@covers PHPUnit_Util_TestDox_NamePrettifier::prettifyTestMethod

File

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

Class

Util_TestDox_NamePrettifierTest
@since Class available since Release 2.1.0

Code

public function testTestNameIsConvertedToASentence() {
  $this
    ->assertEquals('This is a test', $this->namePrettifier
    ->prettifyTestMethod('testThisIsATest'));
  $this
    ->assertEquals('This is a test', $this->namePrettifier
    ->prettifyTestMethod('testThisIsATest2'));
  $this
    ->assertEquals('this is a test', $this->namePrettifier
    ->prettifyTestMethod('this_is_a_test'));
  $this
    ->assertEquals('Foo for bar is 0', $this->namePrettifier
    ->prettifyTestMethod('testFooForBarIs0'));
  $this
    ->assertEquals('Foo for baz is 1', $this->namePrettifier
    ->prettifyTestMethod('testFooForBazIs1'));
}