コード例 #1
0
ファイル: RestServiceTestPost.php プロジェクト: alfmel/cougar
 /**
  * @covers \Cougar\RestService\RestService::body
  * @todo   Find a way to test this better
  */
 public function testBody()
 {
     $this->assertEquals("", $this->object->body());
 }
コード例 #2
0
ファイル: RestServiceTestGet.php プロジェクト: alfmel/cougar
 /**
  * @covers \Cougar\RestService\RestService::body
  * @expectedException \Cougar\Exceptions\BadRequestException
  */
 public function testBadBodyAsArray()
 {
     global $_BODY;
     $_BODY = "This is something that won't parse to anything!";
     $this->object->body("array");
 }