Beispiel #1
0
 public function testJsonOutputIsJsonEncoded()
 {
     $content = ['one' => true];
     $this->expectOutputString(json_encode($content));
     $this->res->setContentType(Response::JSON);
     $this->res->setContent($content);
     $this->res->sendContent();
 }