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