@@ -21,19 +21,21 @@ public function testMakeMethodCreatesValidValidator()
2121 $ this ->assertEquals (array ('baz ' => array ('boom ' )), $ validator ->getRules ());
2222
2323 $ presence = m::mock ('Illuminate\Validation\PresenceVerifierInterface ' );
24- $ factory ->extend ('foo ' , function () {});
25- $ factory ->extendImplicit ('implicit ' , function () {});
24+ $ noop1 = function () {};
25+ $ noop2 = function () {};
26+ $ factory ->extend ('foo ' , $ noop1 );
27+ $ factory ->extendImplicit ('implicit ' , $ noop2 );
2628 $ factory ->setPresenceVerifier ($ presence );
2729 $ validator = $ factory ->make (array (), array ());
28- $ this ->assertEquals (array ('foo ' => function () {} , 'implicit ' => function () {} ), $ validator ->getExtensions ());
30+ $ this ->assertEquals (array ('foo ' => $ noop1 , 'implicit ' => $ noop2 ), $ validator ->getExtensions ());
2931 $ this ->assertEquals ($ presence , $ validator ->getPresenceVerifier ());
3032
3133 $ presence = m::mock ('Illuminate\Validation\PresenceVerifierInterface ' );
32- $ factory ->extend ('foo ' , function () {} , 'foo! ' );
33- $ factory ->extendImplicit ('implicit ' , function () {} , 'implicit! ' );
34+ $ factory ->extend ('foo ' , $ noop1 , 'foo! ' );
35+ $ factory ->extendImplicit ('implicit ' , $ noop2 , 'implicit! ' );
3436 $ factory ->setPresenceVerifier ($ presence );
3537 $ validator = $ factory ->make (array (), array ());
36- $ this ->assertEquals (array ('foo ' => function () {} , 'implicit ' => function () {} ), $ validator ->getExtensions ());
38+ $ this ->assertEquals (array ('foo ' => $ noop1 , 'implicit ' => $ noop2 ), $ validator ->getExtensions ());
3739 $ this ->assertEquals (array ('foo ' => 'foo! ' , 'implicit ' => 'implicit! ' ), $ validator ->getFallbackMessages ());
3840 $ this ->assertEquals ($ presence , $ validator ->getPresenceVerifier ());
3941 }
0 commit comments