| Total Complexity | 4 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class LimitTest extends TestCase |
||
| 9 | { |
||
| 10 | public function testBuildWithoutOffset() |
||
| 11 | { |
||
| 12 | $component = new Limit(1); |
||
| 13 | $this->assertEquals(Limit::build($component), '0, 1'); |
||
| 14 | } |
||
| 15 | |||
| 16 | public function testBuildWithOffset() |
||
| 17 | { |
||
| 18 | $component = new Limit(1, 2); |
||
| 19 | $this->assertEquals(Limit::build($component), '2, 1'); |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @dataProvider parseProvider |
||
| 24 | * |
||
| 25 | * @param mixed $test |
||
| 26 | */ |
||
| 27 | public function testParse($test) |
||
| 28 | { |
||
| 29 | $this->runParserTest($test); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function parseProvider() |
||
| 37 | ); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |