| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class PartitionDefinitionTest extends TestCase |
||
| 10 | { |
||
| 11 | public function testParse() |
||
| 12 | { |
||
| 13 | $component = PartitionDefinition::parse( |
||
| 14 | new Parser(), |
||
| 15 | $this->getTokensList('PARTITION p0 VALUES LESS THAN(1990)') |
||
| 16 | ); |
||
| 17 | $this->assertFalse($component->isSubpartition); |
||
| 18 | $this->assertEquals('p0', $component->name); |
||
| 19 | $this->assertEquals('LESS THAN', $component->type); |
||
| 20 | $this->assertEquals('(1990)', $component->expr->expr); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function testParseNameWithUnderscore() |
||
| 33 | } |
||
| 34 | } |
||
| 35 |