lithium\tests\cases\data\source\DatabaseTest::testObjectValueWithSchemaFormatter PHP Метод

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

    public function testObjectValueWithSchemaFormatter()
    {
        $result = $this->_db->value((object) 'REGEXP "^fo$"');
        $this->assertIdentical('REGEXP "^fo$"', $result);
        $result = $this->_db->value((object) 'CURRENT_TIMESTAMP', array('type' => 'timestamp'));
        $this->assertIdentical('CURRENT_TIMESTAMP', $result);
    }
DatabaseTest