public function Util_TestDox_NamePrettifierTest::testTestNameIsConvertedToASentence

File

drupal/core/vendor/phpunit/phpunit/Tests/Util/TestDox/NamePrettifierTest.php, line 91

Class

Util_TestDox_NamePrettifierTest
@package PHPUnit @author Sebastian Bergmann <sebastian@phpunit.de> @copyright 2001-2013 Sebastian Bergmann <sebastian@phpunit.de> @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License @link …

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'));
}