33namespace spec \Http \Message \Authentication ;
44
55use Http \Message \Authentication ;
6- use Psr \Http \Message \RequestInterface ;
76use PhpSpec \ObjectBehavior ;
7+ use Psr \Http \Message \RequestInterface ;
88
99class MatchingSpec extends ObjectBehavior
1010{
11- function let (Authentication $ authentication )
11+ public function let (Authentication $ authentication )
1212 {
13- $ matcher = function ($ request ) { return true ; };
13+ $ matcher = function ($ request ) { return true ; };
1414
1515 $ this ->beConstructedWith ($ authentication , $ matcher );
1616 }
1717
18- function it_is_initializable ()
18+ public function it_is_initializable ()
1919 {
2020 $ this ->shouldHaveType ('Http\Message\Authentication\Matching ' );
2121 }
2222
23- function it_is_an_authentication ()
23+ public function it_is_an_authentication ()
2424 {
2525 $ this ->shouldImplement ('Http\Message\Authentication ' );
2626 }
2727
28- function it_authenticates_a_request (Authentication $ authentication , RequestInterface $ request , RequestInterface $ newRequest )
28+ public function it_authenticates_a_request (Authentication $ authentication , RequestInterface $ request , RequestInterface $ newRequest )
2929 {
3030 $ authentication ->authenticate ($ request )->willReturn ($ newRequest );
3131
3232 $ this ->authenticate ($ request )->shouldReturn ($ newRequest );
3333 }
3434
35- function it_does_not_authenticate_a_request (Authentication $ authentication , RequestInterface $ request )
35+ public function it_does_not_authenticate_a_request (Authentication $ authentication , RequestInterface $ request )
3636 {
37- $ matcher = function ($ request ) { return false ; };
37+ $ matcher = function ($ request ) { return false ; };
3838
3939 $ this ->beConstructedWith ($ authentication , $ matcher );
4040
@@ -43,7 +43,7 @@ function it_does_not_authenticate_a_request(Authentication $authentication, Requ
4343 $ this ->authenticate ($ request )->shouldReturn ($ request );
4444 }
4545
46- function it_creates_a_matcher_from_url (Authentication $ authentication )
46+ public function it_creates_a_matcher_from_url (Authentication $ authentication )
4747 {
4848 $ this ->createUrlMatcher ($ authentication , 'url ' )->shouldHaveType ('Http\Message\Authentication\Matching ' );
4949 }
0 commit comments