lithium\tests\cases\data\source\DatabaseTest::testNumericValueWithSchemaFormatter PHP Method

testNumericValueWithSchemaFormatter() public method

    public function testNumericValueWithSchemaFormatter()
    {
        $result = $this->_db->value('1', array('type' => 'integer'));
        $this->assertIdentical(1, $result);
        $result = $this->_db->value('1.1', array('type' => 'float'));
        $this->assertIdentical(1.1, $result);
    }
DatabaseTest