File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -89,9 +89,9 @@ public function testTypeAliasesForAllowedTypes()
8989 'force ' => 'boolean ' ,
9090 ));
9191
92- $ this ->resolver ->resolve (array (
92+ $ this ->assertSame ( array ( ' force ' => true ), $ this -> resolver ->resolve (array (
9393 'force ' => true ,
94- ));
94+ ))) ;
9595 }
9696
9797 public function testResolveLazyDependencyOnOptional ()
Original file line number Diff line number Diff line change @@ -1102,7 +1102,7 @@ public function testFailIfCyclicDependencyBetweenNormalizerAndLazyOption()
11021102 $ this ->resolver ->resolve ();
11031103 }
11041104
1105- public function testCatchedExceptionFromNormalizerDoesNotCrashOptionResolver ()
1105+ public function testCaughtExceptionFromNormalizerDoesNotCrashOptionResolver ()
11061106 {
11071107 $ throw = true ;
11081108
@@ -1116,7 +1116,7 @@ public function testCatchedExceptionFromNormalizerDoesNotCrashOptionResolver()
11161116 }
11171117 });
11181118
1119- $ this ->resolver ->setNormalizer ('thrower ' , function (Options $ options ) use (&$ throw ) {
1119+ $ this ->resolver ->setNormalizer ('thrower ' , function () use (&$ throw ) {
11201120 if ($ throw ) {
11211121 $ throw = false ;
11221122 throw new \UnexpectedValueException ('throwing ' );
@@ -1125,10 +1125,10 @@ public function testCatchedExceptionFromNormalizerDoesNotCrashOptionResolver()
11251125 return true ;
11261126 });
11271127
1128- $ this ->resolver ->resolve ();
1128+ $ this ->assertSame ( array ( ' catcher ' => false , ' thrower ' => true ), $ this -> resolver ->resolve () );
11291129 }
11301130
1131- public function testCatchedExceptionFromLazyDoesNotCrashOptionResolver ()
1131+ public function testCaughtExceptionFromLazyDoesNotCrashOptionResolver ()
11321132 {
11331133 $ throw = true ;
11341134
@@ -1149,7 +1149,7 @@ public function testCatchedExceptionFromLazyDoesNotCrashOptionResolver()
11491149 return true ;
11501150 });
11511151
1152- $ this ->resolver ->resolve ();
1152+ $ this ->assertSame ( array ( ' catcher ' => false , ' thrower ' => true ), $ this -> resolver ->resolve () );
11531153 }
11541154
11551155 public function testInvokeEachNormalizerOnlyOnce ()
You can’t perform that action at this time.
0 commit comments