lithium\tests\cases\util\StringTest::testInsertWithUnusedNumericKey PHP Method

testInsertWithUnusedNumericKey() public method

Tests that text replacements with String::insert() using key/value pairs are not mis-handled if numeric keys are present in the array (only if they appear first).
    public function testInsertWithUnusedNumericKey()
    {
        $result = String::insert("Hey, what are you tryin' to {:action} on us?", array('action' => 'push', '!'));
        $expected = "Hey, what are you tryin' to push on us?";
        $this->assertEqual($expected, $result);
    }