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