X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=vendor%2Fdoctrine%2Fdbal%2Ftests%2FDoctrine%2FTests%2FDBAL%2FTypes%2FDecimalTest.php;fp=vendor%2Fdoctrine%2Fdbal%2Ftests%2FDoctrine%2FTests%2FDBAL%2FTypes%2FDecimalTest.php;h=983029c1aab1d18f1f28f486d0e2f285b1be1ef3;hb=8b04b2d11798dee4f3e1358e4f43e97a6df851f6;hp=0000000000000000000000000000000000000000;hpb=73568cf05a785a45f94ca3f2351d9e07bf917958;p=zf2.biz%2Fapplication_blanche.git diff --git a/vendor/doctrine/dbal/tests/Doctrine/Tests/DBAL/Types/DecimalTest.php b/vendor/doctrine/dbal/tests/Doctrine/Tests/DBAL/Types/DecimalTest.php new file mode 100644 index 0000000..983029c --- /dev/null +++ b/vendor/doctrine/dbal/tests/Doctrine/Tests/DBAL/Types/DecimalTest.php @@ -0,0 +1,31 @@ +_platform = new \Doctrine\Tests\DBAL\Mocks\MockPlatform(); + $this->_type = Type::getType('decimal'); + } + + public function testDecimalConvertsToPHPValue() + { + $this->assertInternalType('string', $this->_type->convertToPHPValue('5.5', $this->_platform)); + } + + public function testDecimalNullConvertsToPHPValue() + { + $this->assertNull($this->_type->convertToPHPValue(null, $this->_platform)); + } +} \ No newline at end of file