Пример #1
0
 /**
  * @covers \Cougar\RestService\RestService::body
  * @todo   Find a way to test this better
  */
 public function testBody()
 {
     $this->assertEquals("", $this->object->body());
 }
Пример #2
0
 /**
  * @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");
 }