Example #1
0
 public function testResponseWarning()
 {
     $response = new Search\Engine\Sphinx\Response(array("status" => 3, "error" => "", "warning" => "foo", "total" => 0, "matches" => array()));
     $this->boolean($response->isError())->isFalse();
     $this->boolean($response->isWarning())->isTrue();
     $this->boolean($response->isSuccessful())->isTrue();
     $this->string($response->getWarning())->isEqualTo("foo");
     $this->array($response->getMessages())->isEqualTo(array("foo"));
 }