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:----QsiYUX7bv1eekqJRLzzrGT169O6mczxgrtXIGgEu+o4H3PcIR6X+5yFrzuJWd8vHGuK79C/7m0/j94sphMOvnqZY9tfN/ua0txWtGL70ePVB+aE7q7rTWvkMuCQ+vPjfEr98odMLmNK5fOjGXTHAf0pQ1aYOYwQXos/EiR3eX4xw62Fqp6zasB1mv5sl4XYFMg9YN+kmdolEbqpkwth7yWHyNC06P2eY4fQKAd5fUmcmRL1/rYrqzPm5Nb3TK4fDEi5smH7sFJe0Yg2EmhQ2jJDoYRJTu1AIomn139xx6FH2CyA2/eWjnqtPFgCuvhchX4dMXbhTGSxT+7xSc5YYwWMgd2NiEG6sRqPw2xaIPoI16J+zBhfLHSAaAZR5HKN8W1QXBKHjM0S4Pijf0VNGPRjt7AW/pI6pR7/QwJnDJxP8usPY9mkUjIgy1bvTmfJF23ry+9uYWipN8ci1qvzjWMtUeyCpGSMcngr9DVTNxZ0Hcl9NaxF5o3B81HZ88K9GHl3jcErY3UN10m/Vrmo7sLT854NI86pe1ZlQeS5LwMcjXnyBtBquCcXg6AEjkwYnlD4g/6mWCvt2TQ8IM8w8vaMjgXMOcjYmvIrOjEbtf3Cw/kHNwLt2jkaThzRvDqxjsyIhPsNTgBL8AiXs7w3BkHXlLEkKGLDn4aJ24kn0pI4=----ATTACHMENT:----Mzg3NTQwODY1NTUwMDM1MyAzMTk3NDkxNTE2NTg5NiA5NTY4Njc1NzE2MjUyMDc2