Total Complexity | 4 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | trait TableAssertions |
||
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 | protected function assertCompareTables(string $sourceTable, string $destinationTable): void |
||
21 | } |
||
22 | |||
23 | protected function assertSameTable(array $expectedDef, string $table): void |
||
24 | { |
||
25 | $definition = $this->getTableDefinition($table); |
||
26 | |||
27 | $this->assertSame($expectedDef, $definition); |
||
28 | } |
||
29 | |||
30 | protected function seeTable(string $table): void |
||
31 | { |
||
32 | $this->assertTrue(Schema::hasTable($table)); |
||
|
|||
33 | } |
||
34 | |||
35 | private function getTableDefinition(string $table): array |
||
38 | } |
||
39 | } |
||
40 |
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.