Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix tests

  • Loading branch information...
commit e9974911fef2bb478dec81747437d3a67f7e1319 1 parent 67f0722
Fabio B. Silva FabioBatSilva authored
2  lib/Doctrine/ORM/Tools/EntityGenerator.php
View
@@ -153,7 +153,7 @@ class EntityGenerator
Type::SMALLINT => 'integer',
Type::TEXT => 'string',
Type::BLOB => 'string',
- Type::DECIMAL => 'double',
+ Type::DECIMAL => 'float',
);
/**
48 tests/Doctrine/Tests/ORM/Tools/EntityGeneratorTest.php
View
@@ -311,65 +311,65 @@ public function testEntityTypeAlias(array $field)
*/
public function getEntityTypeAliasDataProvider()
{
- return array(array(
- array(
+ return array(
+ array(array(
'fieldName' => 'datetimetz',
'phpType' => '\\DateTime',
'dbType' => 'datetimetz',
'value' => new \DateTime
- ),
- array(
+ )),
+ array(array(
'fieldName' => 'datetime',
'phpType' => '\\DateTime',
'dbType' => 'datetime',
'value' => new \DateTime
- ),
- array(
+ )),
+ array(array(
'fieldName' => 'date',
'phpType' => '\\DateTime',
'dbType' => 'date',
'value' => new \DateTime
- ),
- array(
+ )),
+ array(array(
'fieldName' => 'time',
'phpType' => '\DateTime',
'dbType' => 'time',
'value' => new \DateTime
- ),
- array(
+ )),
+ array(array(
'fieldName' => 'object',
'phpType' => '\stdClass',
'dbType' => 'object',
'value' => new \stdClass()
- ),
- array(
+ )),
+ array(array(
'fieldName' => 'bigint',
'phpType' => 'integer',
'dbType' => 'bigint',
'value' => 11
- ),
- array(
+ )),
+ array(array(
'fieldName' => 'smallint',
'phpType' => 'integer',
- 'type' => 'smallint',
+ 'dbType' => 'smallint',
'value' => 22
- ),
- array(
+ )),
+ array(array(
'fieldName' => 'text',
'phpType' => 'string',
'dbType' => 'text',
'value' => 'text'
- ),
- array(
+ )),
+ array(array(
'fieldName' => 'blob',
'phpType' => 'string',
'dbType' => 'blob',
'value' => 'blob'
- ),
- array(
- 'fieldName' => 'blob',
- 'phpType' => 'double',
- 'dbType' => 'blob',
+ )),
+ array(array(
+ 'fieldName' => 'decimal',
+ 'phpType' => 'float',
+ 'dbType' => 'decimal',
'value' => 33.33
),
));
Please sign in to comment.
Something went wrong with that request. Please try again.