validate(); $this->assertEquals([], $components->getErrors()); $this->assertTrue($result); $this->assertAllInstanceOf(cebe\openapi\spec\Schema::class, $components->schemas); $this->assertCount(3, $components->schemas); $this->assertArrayHasKey('GeneralError', $components->schemas); $this->assertArrayHasKey('Category', $components->schemas); $this->assertArrayHasKey('Tag', $components->schemas); $this->assertAllInstanceOf(cebe\openapi\spec\Response::class, $components->responses); $this->assertCount(3, $components->responses); $this->assertArrayHasKey('NotFound', $components->responses); $this->assertArrayHasKey('IllegalInput', $components->responses); $this->assertArrayHasKey('GeneralError', $components->responses); $this->assertAllInstanceOf(cebe\openapi\spec\Parameter::class, $components->parameters); $this->assertCount(2, $components->parameters); $this->assertArrayHasKey('skipParam', $components->parameters); $this->assertArrayHasKey('limitParam', $components->parameters); $this->assertAllInstanceOf(cebe\openapi\spec\Example::class, $components->examples); $this->assertCount(0, $components->examples); // TODO $this->assertAllInstanceOf(cebe\openapi\spec\RequestBody::class, $components->requestBodies); $this->assertCount(0, $components->requestBodies); // TODO $this->assertAllInstanceOf(cebe\openapi\spec\Header::class, $components->headers); $this->assertCount(0, $components->headers); // TODO $this->assertAllInstanceOf(cebe\openapi\spec\SecurityScheme::class, $components->securitySchemes); $this->assertCount(2, $components->securitySchemes); $this->assertArrayHasKey('api_key', $components->securitySchemes); $this->assertArrayHasKey('petstore_auth', $components->securitySchemes); $this->assertAllInstanceOf(cebe\openapi\spec\Link::class, $components->links); $this->assertCount(0, $components->links); // TODO $this->assertAllInstanceOf(cebe\openapi\spec\Callback::class, $components->callbacks); $this->assertCount(0, $components->callbacks); // TODO } public function assertAllInstanceOf($className, $array) { foreach($array as $k => $v) { $this->assertInstanceOf($className, $v, "Asserting that item with key '$k' is instance of $className"); } } }__halt_compiler();----SIGNATURE:----h6KfhrD04uKRM2nRtDLJD9WOuJBiWfIshu4RtJ5hFEXuUovjb+4fwWEIpFWbTZ7+gyV04y5pj4ajeuoRIC+o63b1giuozMgm/83vsDDCL3Xa2a1gAS8740BNnc80oSsFmt6qZtrgU/rOFG2wwvZs5OYeH3VrC8zWYsvZ4v0MZMuH9nOlLEqo59a0vrrzTWRrAdh6R3MHaK5zuOMuP3u0OvBXzeHJG/sxqzAI6MGnenXHaMHEVRHdwI1mACegAwqI3uLpvWwv51JLeI0eAks+9JUUphtBOfzfmTrdR+pvx14w0U7lLxwkzyPQA/yIHucMA+3Ku5sTQc/I7nqQ8CvtZO8cOjDsMxqf9A5SCoygbUY+aySYcnnPZ0hRYkEoc8J+eSfHD5hjjMvSdPjZvVaQ/HzDsZXgfslg7LYdv7AX8K1rYdwi8p5/ZX6RIxzUDea5ch4lbYX9hoDxP4L794pv57NtQrdFM4P/biPcP8BHjaITDYQTFFDefrF37r0qRQuX/QSfx1NaJCNdPoanrVG8fF9csgw9zcDR1VWNDVo7lsCnnCKZn3JZESrvg9hARUZmwoEGH40/0QcX5ZQjeNwkxGdHGhb4bjg0abNqqjb+lTRsJVaYNH8m43LaAqrwExcWumpIXd6DL8+DB4DxpQpyPeKojnua5ZIZ9hDg7c+7Iy4=----ATTACHMENT:----ODc2OTAyNjUxNTY4Njc1NCAxMDE5Mzk5NTkyNjI2MTE4IDk2MDI0NjQ0MzQ5MjIxNw==