_platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform(); $this->_type = Type::getType('boolean'); } public function testBooleanConvertsToDatabaseValue() { $this->assertInternalType('integer', $this->_type->convertToDatabaseValue(1, $this->_platform)); } public function testBooleanConvertsToPHPValue() { $this->assertInternalType('bool', $this->_type->convertToPHPValue(0, $this->_platform)); } public function testBooleanNullConvertsToPHPValue() { $this->assertNull($this->_type->convertToPHPValue(null, $this->_platform)); } }