Ejemplo n.º 1
0
 function it_throws_an_exception_when_no_valid_json_is_found(RequestInterface $request, StreamableInterface $body)
 {
     $body->__toString()->willReturn('INVALID');
     $body->isSeekable()->willReturn(true);
     $body->isWritable()->willReturn(true);
     $request->getBody()->willReturn($body);
     $this->shouldThrow('RuntimeException')->duringAuthenticateRequest($request);
 }