| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function testParseNameWithUnderscore() |
||
| 24 | { |
||
| 25 | $component = PartitionDefinition::parse( |
||
| 26 | new Parser(), |
||
| 27 | $this->getTokensList('PARTITION 2017_12 VALUES LESS THAN (\'2018-01-01 00:00:00\') ENGINE = MyISAM') |
||
| 28 | ); |
||
| 29 | $this->assertFalse($component->isSubpartition); |
||
| 30 | $this->assertEquals('2017_12', $component->name); |
||
| 31 | $this->assertEquals('LESS THAN', $component->type); |
||
| 32 | $this->assertEquals('(\'2018-01-01 00:00:00\')', $component->expr->expr); |
||
| 33 | } |
||
| 35 |