コード例 #1
0
ファイル: responseTest.php プロジェクト: seagoj/devtools
 /**
  * @covers \Devtools\Response::data()
  * @expectedException \Exception
  **/
 public function testData()
 {
     $response = new \Devtools\Response();
     $response->data(array());
 }
コード例 #2
0
ファイル: ajaxSuccess.php プロジェクト: seagoj/devtools
<?php

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