public function Util_TestDox_NamePrettifierTest::testCaterForUserDefinedSuffix

File

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

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