Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function testLogout() |
||
20 | { |
||
21 | $client = static::createClient(); |
||
22 | $client->getContainer()->mock( |
||
|
|||
23 | 'fos_http_cache.proxy_client.varnish', |
||
24 | '\FOS\HttpCache\ProxyClient\Varnish' |
||
25 | ) |
||
26 | ->shouldReceive('ban')->once()->with(array('accept' => 'application/vnd.fos.user-context-hash', 'Cookie' => '.*test.*')) |
||
27 | ->shouldReceive('ban')->once()->with(array('accept' => 'application/vnd.fos.user-context-hash', 'Authorization' => '.*test.*')) |
||
28 | ->shouldReceive('flush')->once() |
||
29 | ; |
||
30 | |||
31 | $client->getCookieJar()->set(new Cookie('TESTSESSID', 'test')); |
||
32 | $client->request('GET', '/secured_area/logout'); |
||
33 | } |
||
34 | } |
||
35 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.