Extends
lithium\test\Unit
Tests casting/inserting of custom objects with `String::insert()`.
Returns
voidSource
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);
}