Extension\BuiltIn\StringMethodTest::testModifications PHP Метод

testModifications() публичный Метод

public testModifications ( )
    public function testModifications()
    {
        $t = new StringMethods();
        $this->assertSame("<br />\nfoo<br />\n", $t->getNl2br("\nfoo\n"));
        $this->assertSame('foobarfoobar', $t->getRepeatted('foobar', 2));
        $shuffled = $t->getShuffled('hello world');
        $this->assertNotEquals('hello world', $shuffled);
        $this->assertSame(strlen('hello world'), strlen($shuffled));
        $this->assertSame('olleh', $t->getReversed('hello'));
    }