/** * @covers \Cougar\RestClient\CurlWrapper::setBody */ public function testSetBody() { # Test array body $body = array("name1" => "value1", "name2" => "value2"); $this->assertNull($this->object->setBody($body)); $this->assertAttributeEquals($body, "body", $this->object); # Test text body $body = array("This is a sample body"); $this->assertNull($this->object->setBody($body)); $this->assertAttributeEquals($body, "body", $this->object); }