@@ -74,7 +74,7 @@ public function testReimplementFunc()
7474 public function testVerifier ()
7575 {
7676 $ func = test::func ('demo ' , 'strlen ' , 10 );
77- expect (strlen ('hello ' ))->equals (10 );
77+ verify (strlen ('hello ' ))->equals (10 );
7878 $ func ->verifyInvoked ();
7979 $ func ->verifyInvoked (['hello ' ]);
8080 $ func ->verifyInvokedOnce ();
@@ -86,7 +86,7 @@ public function testVerifier()
8686 public function testVerifierFullyQualifiedNamespace ()
8787 {
8888 $ func = test::func ('\demo ' , 'strlen ' , 10 );
89- expect (strlen ('hello ' ))->equals (10 );
89+ verify (strlen ('hello ' ))->equals (10 );
9090 $ func ->verifyInvoked ();
9191 $ func ->verifyInvoked (['hello ' ]);
9292 $ func ->verifyInvokedOnce ();
@@ -102,17 +102,17 @@ public function testFailedVerification()
102102 {
103103 $ this ->expectException (ExpectationFailedException::class);
104104 $ func = test::func ('demo ' , 'strlen ' , function () { return 10 ; });
105- expect (strlen ('hello ' ))->equals (10 );
105+ verify (strlen ('hello ' ))->equals (10 );
106106 $ func ->verifyNeverInvoked ();
107107 }
108108
109109 public function testReferencedParameter ()
110110 {
111111 $ func = test::func ('\demo ' , 'preg_match ' , 10 );
112- expect (preg_match ('@[0-9]+@ ' , '1234 ' , $ match ))->equals (10 );
112+ verify (preg_match ('@[0-9]+@ ' , '1234 ' , $ match ))->equals (10 );
113113 test::clean ();
114- expect (preg_match ('@[0-9]+@ ' , '1234# ' , $ match ))->equals (1 );
115- expect ($ match [0 ])->equals ('1234 ' );
114+ verify (preg_match ('@[0-9]+@ ' , '1234# ' , $ match ))->equals (1 );
115+ verify ($ match [0 ])->equals ('1234 ' );
116116 }
117117
118118}
0 commit comments