| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function testCanApply(){ |
||
| 12 | $table = new Table("foo"); |
||
| 13 | $column = new Column("bar", Type::getType(Type::DECIMAL)); |
||
| 14 | |||
| 15 | $checkDecimalTypeCondition = new CheckTypeCondition(Type::getType(Type::DECIMAL)); |
||
| 16 | $checkTextTypeCondition = new CheckTypeCondition(Type::getType(Type::TEXT)); |
||
| 17 | $this->assertTrue($checkDecimalTypeCondition->canApply($table, $column)); |
||
| 18 | $this->assertFalse($checkTextTypeCondition->canApply($table, $column)); |
||
| 19 | } |
||
| 21 |