3 namespace Doctrine\Tests\DBAL\Types;
5 use Doctrine\DBAL\Types\Type;
6 use Doctrine\Tests\DBAL\Mocks;
8 require_once __DIR__ . '/../../TestInit.php';
10 class DecimalTest extends \Doctrine\Tests\DbalTestCase
16 protected function setUp()
18 $this->_platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform();
19 $this->_type = Type::getType('decimal');
22 public function testDecimalConvertsToPHPValue()
24 $this->assertInternalType('string', $this->_type->convertToPHPValue('5.5', $this->_platform));
27 public function testDecimalNullConvertsToPHPValue()
29 $this->assertNull($this->_type->convertToPHPValue(null, $this->_platform));