/** @test */ public function itThrowAnExceptionWhenNoOperationIdCanBeResolved() { $this->expectException(\InvalidArgumentException::class); $this->expectExceptionMessage('Unable to resolve the operationId for path /api/pets/1234'); $requests = $this->prophesize(RequestDefinitions::class); $requests->getIterator()->willReturn(new \ArrayIterator()); $schema = new Schema($requests->reveal(), '/api'); $schema->findOperationId('GET', '/api/pets/1234'); }