_platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform(); $this->_type = Type::getType('guid'); } public function testConvertToPHPValue() { $this->assertInternalType("string", $this->_type->convertToPHPValue("foo", $this->_platform)); $this->assertInternalType("string", $this->_type->convertToPHPValue("", $this->_platform)); } public function testNullConversion() { $this->assertNull($this->_type->convertToPHPValue(null, $this->_platform)); } }