@@ -118,13 +118,13 @@ protected function persist(array $entities)
118
118
119
119
public function testClassOptionIsRequired ()
120
120
{
121
- $ this ->expectException (' Symfony\Component\OptionsResolver\Exception\MissingOptionsException ' );
121
+ $ this ->expectException (\ Symfony \Component \OptionsResolver \Exception \MissingOptionsException::class );
122
122
$ this ->factory ->createNamed ('name ' , static ::TESTED_TYPE );
123
123
}
124
124
125
125
public function testInvalidClassOption ()
126
126
{
127
- $ this ->expectException (' Symfony\Component\Form\Exception\RuntimeException ' );
127
+ $ this ->expectException (\ Symfony \Component \Form \Exception \RuntimeException::class );
128
128
$ this ->factory ->createNamed ('name ' , static ::TESTED_TYPE , null , [
129
129
'class ' => 'foo ' ,
130
130
]);
@@ -219,7 +219,7 @@ public function testSetDataToUninitializedEntityWithNonRequiredQueryBuilder()
219
219
220
220
public function testConfigureQueryBuilderWithNonQueryBuilderAndNonClosure ()
221
221
{
222
- $ this ->expectException (' Symfony\Component\OptionsResolver\Exception\InvalidOptionsException ' );
222
+ $ this ->expectException (\ Symfony \Component \OptionsResolver \Exception \InvalidOptionsException::class );
223
223
$ this ->factory ->createNamed ('name ' , static ::TESTED_TYPE , null , [
224
224
'em ' => 'default ' ,
225
225
'class ' => self ::SINGLE_IDENT_CLASS ,
@@ -229,7 +229,7 @@ public function testConfigureQueryBuilderWithNonQueryBuilderAndNonClosure()
229
229
230
230
public function testConfigureQueryBuilderWithClosureReturningNonQueryBuilder ()
231
231
{
232
- $ this ->expectException (' Symfony\Component\Form\Exception\UnexpectedTypeException ' );
232
+ $ this ->expectException (\ Symfony \Component \Form \Exception \UnexpectedTypeException::class );
233
233
$ field = $ this ->factory ->createNamed ('name ' , static ::TESTED_TYPE , null , [
234
234
'em ' => 'default ' ,
235
235
'class ' => self ::SINGLE_IDENT_CLASS ,
@@ -1242,7 +1242,7 @@ public function testLoaderCaching()
1242
1242
$ choiceList2 = $ form ->get ('property2 ' )->getConfig ()->getAttribute ('choice_list ' );
1243
1243
$ choiceList3 = $ form ->get ('property3 ' )->getConfig ()->getAttribute ('choice_list ' );
1244
1244
1245
- $ this ->assertInstanceOf (' Symfony\Component\Form\ChoiceList\LazyChoiceList ' , $ choiceList1 );
1245
+ $ this ->assertInstanceOf (\ Symfony \Component \Form \ChoiceList \LazyChoiceList::class , $ choiceList1 );
1246
1246
$ this ->assertSame ($ choiceList1 , $ choiceList2 );
1247
1247
$ this ->assertSame ($ choiceList1 , $ choiceList3 );
1248
1248
}
@@ -1302,7 +1302,7 @@ public function testLoaderCachingWithParameters()
1302
1302
$ choiceList2 = $ form ->get ('property2 ' )->getConfig ()->getAttribute ('choice_list ' );
1303
1303
$ choiceList3 = $ form ->get ('property3 ' )->getConfig ()->getAttribute ('choice_list ' );
1304
1304
1305
- $ this ->assertInstanceOf (' Symfony\Component\Form\ChoiceList\LazyChoiceList ' , $ choiceList1 );
1305
+ $ this ->assertInstanceOf (\ Symfony \Component \Form \ChoiceList \LazyChoiceList::class , $ choiceList1 );
1306
1306
$ this ->assertSame ($ choiceList1 , $ choiceList2 );
1307
1307
$ this ->assertSame ($ choiceList1 , $ choiceList3 );
1308
1308
}
0 commit comments