Total Complexity | 4 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 8 | ||
Bugs | 2 | Features | 0 |
1 | <?php |
||
14 | final class FeatureTest extends TestCase |
||
15 | { |
||
16 | protected function setUp(): void |
||
17 | { |
||
18 | Gacela::bootstrap(__DIR__, static function (GacelaConfig $config): void { |
||
19 | $config->resetInMemoryCache(); |
||
20 | }); |
||
21 | } |
||
22 | |||
23 | public function test_unknown_facade_method(): void |
||
24 | { |
||
25 | $this->expectException(Error::class); |
||
26 | $this->expectExceptionMessage('Call to undefined method ' . TestFacade::class . '::unknown()'); |
||
27 | |||
28 | (new TestFacade())->unknown(); |
||
|
|||
29 | } |
||
30 | |||
31 | public function test_facade_can_create_string(): void |
||
32 | { |
||
33 | $facade = new TestFacade(); |
||
34 | $actual = $facade->createString(); |
||
35 | |||
36 | self::assertSame(TestFactory::STR, $actual); |
||
37 | } |
||
38 | |||
39 | public function test_factory_access_is_explicit(): void |
||
45 | } |
||
46 | } |
||
47 |
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.