public function testHasBody() { $msg = $this->getMockForAbstractClass('Amp\\Artax\\Message'); $this->assertFalse($msg->hasBody()); $msg->setBody('test'); $this->assertTrue($msg->hasBody()); $msg->setBody('0'); $this->assertTrue($msg->hasBody()); $msg->setBody(''); $this->assertFalse($msg->hasBody()); }