Total Complexity | 4 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | trait ViewAssertions |
||
13 | { |
||
14 | abstract public static function assertSame($expected, $actual, string $message = ''): void; |
||
15 | |||
16 | abstract public static function assertTrue($condition, string $message = ''): void; |
||
17 | |||
18 | abstract public static function assertFalse($condition, string $message = ''): void; |
||
19 | |||
20 | protected function assertSameView(string $expectedDef, string $view): void |
||
21 | { |
||
22 | $definition = $this->getViewDefinition($view); |
||
23 | |||
24 | $this->assertSame($expectedDef, $definition); |
||
25 | } |
||
26 | |||
27 | protected function seeView(string $view): void |
||
28 | { |
||
29 | $this->assertTrue(Schema::hasView($view)); |
||
|
|||
30 | } |
||
31 | |||
32 | protected function notSeeView(string $view): void |
||
35 | } |
||
36 | |||
37 | private function getViewDefinition(string $view): string |
||
43 | ); |
||
44 | } |
||
46 |
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.