Beispiel #1
0
 /**
  * @group unit
  * @expectedException \Elastica\Exception\InvalidException
  * @expectedExceptionMessage The produced query is not a valid json string : "{{}"
  * @covers \Elastica\Query\Builder::toArray
  */
 public function testToArrayWithInvalidData()
 {
     $builder = new Builder();
     $builder->open('foo');
     $builder->toArray();
 }
 /**
  * @expectedException \Elastica\Exception\InvalidException
  * @covers \Elastica\Query\Builder::toArray
  */
 public function testToArrayWithInvalidData()
 {
     $this->builder->open('foo');
     $this->builder->toArray();
 }