lithium\tests\cases\util\StringTest::testInsertWithObject PHP 메소드

testInsertWithObject() 공개 메소드

Tests casting/inserting of custom objects with String::insert().
    public function testInsertWithObject()
    {
        $foo = new MockStringObject();
        $result = String::insert('This is a {:foo}', compact('foo'));
        $expected = 'This is a custom object';
        $this->assertEqual($expected, $result);
    }