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