/** * Checks if the excepted response is Multi or Single * * @param Operation $operation * @return bool */ protected function isMulti($operation) { if ($operation->getHttpMethod() != 'GET') { return false; } if ($operation->hasParam('id')) { return false; } return true; }
public function testCanRemoveParams() { $c = new Operation(array()); $c->addParam(new Parameter(array('name' => 'foo'))); $this->assertTrue($c->hasParam('foo')); $c->removeParam('foo'); $this->assertFalse($c->hasParam('foo')); }