Exemplo n.º 1
0
 /**
  * @covers \Devtools\Response::data()
  * @expectedException \Exception
  **/
 public function testData()
 {
     $response = new \Devtools\Response();
     $response->data(array());
 }
Exemplo n.º 2
0
<?php

$resp = new \Devtools\Response();
$resp->data($_REQUEST);
$resp->message('This is a successful json call with which to test.');
echo $resp->json();