@@ -74,7 +74,7 @@ public function testReimplementFunc()
74
74
public function testVerifier ()
75
75
{
76
76
$ func = test::func ('demo ' , 'strlen ' , 10 );
77
- expect (strlen ('hello ' ))->equals (10 );
77
+ verify (strlen ('hello ' ))->equals (10 );
78
78
$ func ->verifyInvoked ();
79
79
$ func ->verifyInvoked (['hello ' ]);
80
80
$ func ->verifyInvokedOnce ();
@@ -86,7 +86,7 @@ public function testVerifier()
86
86
public function testVerifierFullyQualifiedNamespace ()
87
87
{
88
88
$ func = test::func ('\demo ' , 'strlen ' , 10 );
89
- expect (strlen ('hello ' ))->equals (10 );
89
+ verify (strlen ('hello ' ))->equals (10 );
90
90
$ func ->verifyInvoked ();
91
91
$ func ->verifyInvoked (['hello ' ]);
92
92
$ func ->verifyInvokedOnce ();
@@ -102,17 +102,17 @@ public function testFailedVerification()
102
102
{
103
103
$ this ->expectException (ExpectationFailedException::class);
104
104
$ func = test::func ('demo ' , 'strlen ' , function () { return 10 ; });
105
- expect (strlen ('hello ' ))->equals (10 );
105
+ verify (strlen ('hello ' ))->equals (10 );
106
106
$ func ->verifyNeverInvoked ();
107
107
}
108
108
109
109
public function testReferencedParameter ()
110
110
{
111
111
$ 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 );
113
113
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 ' );
116
116
}
117
117
118
118
}
0 commit comments