| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | protected function checkBuildString(string $expected, string $type, int|null $length, array $calls): void |
||
| 26 | { |
||
| 27 | $db = $this->getConnection(); |
||
| 28 | |||
| 29 | $schema = $db->getSchema(); |
||
| 30 | $builder = $schema->createColumnSchemaBuilder($type, $length); |
||
| 31 | |||
| 32 | foreach ($calls as $call) { |
||
| 33 | $method = array_shift($call); |
||
| 34 | call_user_func_array([$builder, $method], $call); |
||
| 35 | } |
||
| 36 | |||
| 37 | $this->assertSame($expected, $builder->__toString()); |
||
| 38 | } |
||
| 40 |