lithium\tests\cases\util\StringTest::testInsertWithEmptyArray PHP Метод

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

Test that an empty array is not added to the string
    public function testInsertWithEmptyArray()
    {
        $result = String::insert("Hey, what are you tryin' to {:action} on us?", array('action' => array()));
        $expected = "Hey, what are you tryin' to  on us?";
        $this->assertEqual($expected, $result);
    }