1 | <?php // phpcs:ignore WordPress.Files.FileName |
||
16 | class Test_Autoloader_Handler extends TestCase { |
||
17 | |||
18 | /** |
||
19 | * The php autoloader mock; |
||
20 | * |
||
21 | * @var PHP_Autoloader|\PHPUnit\Framework\MockObject\MockObject |
||
22 | */ |
||
23 | private $php_autoloader; |
||
24 | |||
25 | /** |
||
26 | * The hook manager mock; |
||
27 | * |
||
28 | * @var Hook_Manager|\PHPUnit\Framework\MockObject\MockObject |
||
29 | */ |
||
30 | private $hook_manager; |
||
31 | |||
32 | /** |
||
33 | * The manifest reader mock. |
||
34 | * |
||
35 | * @var Manifest_Reader|\PHPUnit\Framework\MockObject\MockObject |
||
36 | */ |
||
37 | private $manifest_reader; |
||
38 | |||
39 | /** |
||
40 | * The autoloader handler we're testing. |
||
41 | * |
||
42 | * @var Autoloader_Handler |
||
43 | */ |
||
44 | private $autoloader_handler; |
||
45 | |||
46 | /** |
||
47 | * Setup runs before each test. |
||
48 | * |
||
49 | * @before |
||
50 | */ |
||
51 | public function set_up() { |
||
71 | |||
72 | /** |
||
73 | * Tests that the handler is able to activate the autoloader successfully. |
||
74 | */ |
||
75 | public function test_activates_autoloader() { |
||
90 | |||
91 | /** |
||
92 | * Tests that the handler is able to reset the autoloader successfully. |
||
93 | */ |
||
94 | public function test_reset_autoloader() { |
||
107 | } |
||
108 |
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.