10
10
* file that was distributed with this source code.
11
11
*/
12
12
13
- namespace Symfony \Component \ PropertyInfo \Tests \ Extractors ;
13
+ namespace Symfony \Bridge \ Doctrine \ PropertyInfo \Tests ;
14
14
15
15
use Doctrine \ORM \EntityManager ;
16
16
use Doctrine \ORM \Tools \Setup ;
17
- use Symfony \Component \ PropertyInfo \ Extractors \DoctrineExtractor ;
17
+ use Symfony \Bridge \ Doctrine \ PropertyInfo \DoctrineExtractor ;
18
18
use Symfony \Component \PropertyInfo \Type ;
19
19
20
20
/**
@@ -43,12 +43,13 @@ public function testGetProperties()
43
43
'guid ' ,
44
44
'time ' ,
45
45
'json ' ,
46
+ 'simpleArray ' ,
46
47
'bool ' ,
47
48
'binary ' ,
48
49
'foo ' ,
49
50
'bar ' ,
50
51
),
51
- $ this ->extractor ->getProperties ('Symfony\Component\PropertyInfo \Tests\Fixtures\DoctrineDummy ' )
52
+ $ this ->extractor ->getProperties ('Symfony\Bridge\Doctrine \Tests\PropertyInfo \Fixtures\DoctrineDummy ' )
52
53
);
53
54
}
54
55
@@ -57,7 +58,7 @@ public function testGetProperties()
57
58
*/
58
59
public function testExtract ($ property , array $ type = null )
59
60
{
60
- $ this ->assertEquals ($ type , $ this ->extractor ->getTypes ('Symfony\Component\PropertyInfo \Tests\Fixtures\DoctrineDummy ' , $ property , array ()));
61
+ $ this ->assertEquals ($ type , $ this ->extractor ->getTypes ('Symfony\Bridge\Doctrine \Tests\PropertyInfo \Fixtures\DoctrineDummy ' , $ property , array ()));
61
62
}
62
63
63
64
public function typesProvider ()
@@ -68,15 +69,16 @@ public function typesProvider()
68
69
array ('bool ' , array (new Type (Type::BUILTIN_TYPE_BOOL ))),
69
70
array ('binary ' , array (new Type (Type::BUILTIN_TYPE_RESOURCE ))),
70
71
array ('json ' , array (new Type (Type::BUILTIN_TYPE_ARRAY , false , null , true ))),
71
- array ('foo ' , array (new Type (Type::BUILTIN_TYPE_OBJECT , false , 'Symfony\Component\PropertyInfo \Tests\Fixtures\DoctrineRelation ' ))),
72
+ array ('foo ' , array (new Type (Type::BUILTIN_TYPE_OBJECT , false , 'Symfony\Bridge\Doctrine \Tests\PropertyInfo \Fixtures\DoctrineRelation ' ))),
72
73
array ('bar ' , array (new Type (
73
74
Type::BUILTIN_TYPE_OBJECT ,
74
75
false ,
75
76
'Doctrine\Common\Collections\Collection ' ,
76
77
true ,
77
78
new Type (Type::BUILTIN_TYPE_INT ),
78
- new Type (Type::BUILTIN_TYPE_OBJECT , false , 'Symfony\Component\PropertyInfo \Tests\Fixtures\DoctrineRelation ' )
79
+ new Type (Type::BUILTIN_TYPE_OBJECT , false , 'Symfony\Bridge\Doctrine \Tests\PropertyInfo \Fixtures\DoctrineRelation ' )
79
80
))),
81
+ array ('simpleArray ' , array (new Type (Type::BUILTIN_TYPE_ARRAY , false , null , true , new Type (Type::BUILTIN_TYPE_INT ), new Type (Type::BUILTIN_TYPE_STRING )))),
80
82
array ('notMapped ' , null ),
81
83
);
82
84
}
0 commit comments