_platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform(); $this->_type = Type::getType('float'); } public function testFloatConvertsToPHPValue() { $this->assertInternalType('float', $this->_type->convertToPHPValue('5.5', $this->_platform)); } public function testFloatNullConvertsToPHPValue() { $this->assertNull($this->_type->convertToPHPValue(null, $this->_platform)); } public function testFloatConvertToDatabaseValue() { $this->assertInternalType('float', $this->_type->convertToDatabaseValue(5.5, $this->_platform)); } public function testFloatNullConvertToDatabaseValue() { $this->assertNull($this->_type->convertToDatabaseValue(null, $this->_platform)); } }