/** * @test */ public function canParseRangeQuery() { $expected = '[firstValue TO secondValue]'; $actual = $this->rangeParser->decodeFilter('firstValue-secondValue'); $this->assertEquals($expected, $actual); }
/** * Test the handling of invalid parameters * * @test * @expectedException \InvalidArgumentException * @return void */ public function canHandleInvalidParameters() { $this->rangeParser->decodeFilter('invalid-value'); }