1 | <?php |
||
17 | class BypassCacheListenerTest extends TestCase |
||
18 | { |
||
19 | /** |
||
20 | * Tests onKernelRequest method. |
||
21 | * |
||
22 | * @dataProvider dataProvider |
||
23 | * |
||
24 | * @param string $bypassCacheArgument |
||
25 | * @param array $query |
||
26 | * @param array $request |
||
27 | * @param array $attributes |
||
28 | * @param array $cookies |
||
29 | * @param bool $isHit |
||
30 | */ |
||
31 | public function testOnKernelRequest( |
||
50 | |||
51 | /** |
||
52 | * Creates an ApiClient instance with mocked dependencies |
||
53 | * and ArrayAdapter as cache pool. |
||
54 | * |
||
55 | * @return ApiClient |
||
56 | */ |
||
57 | private function getApiClient() |
||
64 | |||
65 | /** |
||
66 | * Asserts that storing an item to the provided pool followed by immediately |
||
67 | * fetching it again from the pool will result in the specified "hit" status. |
||
68 | * ($isHit = true -> expecting a cache hit; $isHit = false -> expecting a cache miss). |
||
69 | * |
||
70 | * @param $isHit |
||
71 | * @param CacheItemPoolInterface $pool |
||
72 | */ |
||
73 | private function assertIsHit($isHit, CacheItemPoolInterface $pool) |
||
80 | |||
81 | /** |
||
82 | * Data provider for testOnKernelRequest. |
||
83 | * Provides various combinations of request arguments and configuration, |
||
84 | * as well as the expected behavior. |
||
85 | * |
||
86 | * @return array |
||
87 | */ |
||
88 | public function dataProvider() |
||
103 | } |
||
104 |
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.