3 namespace Doctrine\Tests\DBAL\Types;
5 use Doctrine\DBAL\Types\Type;
6 use Doctrine\Tests\DBAL\Mocks;
8 class GuidTest extends \Doctrine\Tests\DbalTestCase
14 protected function setUp()
16 $this->_platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform();
17 $this->_type = Type::getType('guid');
20 public function testConvertToPHPValue()
22 $this->assertInternalType("string", $this->_type->convertToPHPValue("foo", $this->_platform));
23 $this->assertInternalType("string", $this->_type->convertToPHPValue("", $this->_platform));
26 public function testNullConversion()
28 $this->assertNull($this->_type->convertToPHPValue(null, $this->_platform));