public function testReturnsIfOperationExists() { $s = new Service(['operations' => ['foo' => ['input' => []]]], function () { return []; }); $this->assertTrue($s->hasOperation('foo')); $this->assertInstanceOf('Vws\\Api\\Operation', $s->getOperation('foo')); $this->assertArrayHasKey('foo', $s->getOperations()); }