@@ -31,7 +31,7 @@ public function testStart()
31
31
$ response = $ entryPoint ->start ($ request , $ authenticationException );
32
32
33
33
$ this ->assertEquals (401 , $ response ->getStatusCode ());
34
- $ this ->assertRegExp ('/^Digest realm="TheRealmName", qop="auth", nonce="[a-zA-Z0-9\/+]+={0,2}"$/ ' , $ response ->headers ->get ('WWW-Authenticate ' ));
34
+ $ this ->assertMatchesRegularExpression ('/^Digest realm="TheRealmName", qop="auth", nonce="[a-zA-Z0-9\/+]+={0,2}"$/ ' , $ response ->headers ->get ('WWW-Authenticate ' ));
35
35
}
36
36
37
37
public function testStartWithNoException ()
@@ -42,7 +42,7 @@ public function testStartWithNoException()
42
42
$ response = $ entryPoint ->start ($ request );
43
43
44
44
$ this ->assertEquals (401 , $ response ->getStatusCode ());
45
- $ this ->assertRegExp ('/^Digest realm="TheRealmName", qop="auth", nonce="[a-zA-Z0-9\/+]+={0,2}"$/ ' , $ response ->headers ->get ('WWW-Authenticate ' ));
45
+ $ this ->assertMatchesRegularExpression ('/^Digest realm="TheRealmName", qop="auth", nonce="[a-zA-Z0-9\/+]+={0,2}"$/ ' , $ response ->headers ->get ('WWW-Authenticate ' ));
46
46
}
47
47
48
48
public function testStartWithNonceExpiredException ()
@@ -55,6 +55,6 @@ public function testStartWithNonceExpiredException()
55
55
$ response = $ entryPoint ->start ($ request , $ nonceExpiredException );
56
56
57
57
$ this ->assertEquals (401 , $ response ->getStatusCode ());
58
- $ this ->assertRegExp ('/^Digest realm="TheRealmName", qop="auth", nonce="[a-zA-Z0-9\/+]+={0,2}", stale="true"$/ ' , $ response ->headers ->get ('WWW-Authenticate ' ));
58
+ $ this ->assertMatchesRegularExpression ('/^Digest realm="TheRealmName", qop="auth", nonce="[a-zA-Z0-9\/+]+={0,2}", stale="true"$/ ' , $ response ->headers ->get ('WWW-Authenticate ' ));
59
59
}
60
60
}
0 commit comments