@@ -256,14 +256,14 @@ public function testResolveSucceedsIfRequiredOptionSet()
256
256
$ this ->resolver ->setRequired ('foo ' );
257
257
$ this ->resolver ->setDefault ('foo ' , 'bar ' );
258
258
259
- $ this ->resolver ->resolve ();
259
+ $ this ->assertNotEmpty ( $ this -> resolver ->resolve () );
260
260
}
261
261
262
262
public function testResolveSucceedsIfRequiredOptionPassed ()
263
263
{
264
264
$ this ->resolver ->setRequired ('foo ' );
265
265
266
- $ this ->resolver ->resolve (array ('foo ' => 'bar ' ));
266
+ $ this ->assertNotEmpty ( $ this -> resolver ->resolve (array ('foo ' => 'bar ' ) ));
267
267
}
268
268
269
269
public function testIsRequired ()
@@ -504,7 +504,7 @@ public function testResolveSucceedsIfValidType()
504
504
$ this ->resolver ->setDefault ('foo ' , 'bar ' );
505
505
$ this ->resolver ->setAllowedTypes ('foo ' , 'string ' );
506
506
507
- $ this ->resolver ->resolve ();
507
+ $ this ->assertNotEmpty ( $ this -> resolver ->resolve () );
508
508
}
509
509
510
510
/**
@@ -523,7 +523,7 @@ public function testResolveSucceedsIfValidTypeMultiple()
523
523
$ this ->resolver ->setDefault ('foo ' , true );
524
524
$ this ->resolver ->setAllowedTypes ('foo ' , array ('string ' , 'bool ' ));
525
525
526
- $ this ->resolver ->resolve ();
526
+ $ this ->assertNotEmpty ( $ this -> resolver ->resolve () );
527
527
}
528
528
529
529
/**
@@ -542,7 +542,7 @@ public function testResolveSucceedsIfInstanceOfClass()
542
542
$ this ->resolver ->setDefault ('foo ' , new \stdClass ());
543
543
$ this ->resolver ->setAllowedTypes ('foo ' , '\stdClass ' );
544
544
545
- $ this ->resolver ->resolve ();
545
+ $ this ->assertNotEmpty ( $ this -> resolver ->resolve () );
546
546
}
547
547
548
548
////////////////////////////////////////////////////////////////////////////
@@ -587,7 +587,7 @@ public function testResolveSucceedsIfValidAddedType()
587
587
$ this ->resolver ->setDefault ('foo ' , 'bar ' );
588
588
$ this ->resolver ->addAllowedTypes ('foo ' , 'string ' );
589
589
590
- $ this ->resolver ->resolve ();
590
+ $ this ->assertNotEmpty ( $ this -> resolver ->resolve () );
591
591
}
592
592
593
593
/**
@@ -606,7 +606,7 @@ public function testResolveSucceedsIfValidAddedTypeMultiple()
606
606
$ this ->resolver ->setDefault ('foo ' , 'bar ' );
607
607
$ this ->resolver ->addAllowedTypes ('foo ' , array ('string ' , 'bool ' ));
608
608
609
- $ this ->resolver ->resolve ();
609
+ $ this ->assertNotEmpty ( $ this -> resolver ->resolve () );
610
610
}
611
611
612
612
public function testAddAllowedTypesDoesNotOverwrite ()
@@ -617,7 +617,7 @@ public function testAddAllowedTypesDoesNotOverwrite()
617
617
618
618
$ this ->resolver ->setDefault ('foo ' , 'bar ' );
619
619
620
- $ this ->resolver ->resolve ();
620
+ $ this ->assertNotEmpty ( $ this -> resolver ->resolve () );
621
621
}
622
622
623
623
public function testAddAllowedTypesDoesNotOverwrite2 ()
@@ -628,7 +628,7 @@ public function testAddAllowedTypesDoesNotOverwrite2()
628
628
629
629
$ this ->resolver ->setDefault ('foo ' , false );
630
630
631
- $ this ->resolver ->resolve ();
631
+ $ this ->assertNotEmpty ( $ this -> resolver ->resolve () );
632
632
}
633
633
634
634
////////////////////////////////////////////////////////////////////////////
@@ -1078,7 +1078,7 @@ public function testNormalizerNotCalledForUnsetOptions()
1078
1078
\PHPUnit_Framework_Assert::fail ('Should not be called. ' );
1079
1079
});
1080
1080
1081
- $ this ->resolver ->resolve ();
1081
+ $ this ->assertEmpty ( $ this -> resolver ->resolve () );
1082
1082
}
1083
1083
1084
1084
////////////////////////////////////////////////////////////////////////////
@@ -1208,7 +1208,7 @@ public function testFailIfRemoveFromLazyOption()
1208
1208
1209
1209
public function testRemoveUnknownOptionIgnored ()
1210
1210
{
1211
- $ this ->resolver ->remove ('foo ' );
1211
+ $ this ->assertNotNull ( $ this -> resolver ->remove ('foo ' ) );
1212
1212
}
1213
1213
1214
1214
////////////////////////////////////////////////////////////////////////////
@@ -1427,8 +1427,10 @@ public function testCount()
1427
1427
$ this ->resolver ->setDefault ('lazy1 ' , function () {});
1428
1428
1429
1429
$ this ->resolver ->setDefault ('lazy2 ' , function (Options $ options ) {
1430
- \PHPUnit_Framework_Assert::assertCount (3 , $ options );
1430
+ \PHPUnit_Framework_Assert::assertCount (4 , $ options );
1431
1431
});
1432
+
1433
+ $ this ->assertCount (4 , $ this ->resolver ->resolve (array ('required ' => 'value ' )));
1432
1434
}
1433
1435
1434
1436
/**
0 commit comments