Permalink
Browse files

fix tests

  • Loading branch information...
1 parent 67f0722 commit e9974911fef2bb478dec81747437d3a67f7e1319 @FabioBatSilva FabioBatSilva committed Apr 1, 2012
Showing with 25 additions and 25 deletions.
  1. +1 −1 lib/Doctrine/ORM/Tools/EntityGenerator.php
  2. +24 −24 tests/Doctrine/Tests/ORM/Tools/EntityGeneratorTest.php
@@ -153,7 +153,7 @@ class EntityGenerator
Type::SMALLINT => 'integer',
Type::TEXT => 'string',
Type::BLOB => 'string',
- Type::DECIMAL => 'double',
+ Type::DECIMAL => 'float',
);
/**
@@ -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
),
));

0 comments on commit e997491

Please sign in to comment.