public function getContent() { return parent::getContent(); }
/** * */ public function testGetExternalSchemas() { $tagIncludeParser = self::instance(); $tagIncludeParser->parse(); $schemas = array('availableImagesRequest.xsd', 'availableImagesResponse.xsd', 'imagesRequest.xsd', 'imagesResponse.xsd', 'imageViewCommon.xsd'); $schemaContainer = new SchemaContainer($tagIncludeParser->getGenerator()); foreach ($schemas as $schemaPath) { $schemaPath = realpath(sprintf(__DIR__ . '/../../resources/image/%s', $schemaPath)); $schema = new Schema($tagIncludeParser->getGenerator(), $schemaPath, file_get_contents($schemaPath)); $schema->getContent()->setCurrentTag('include'); $schemaContainer->add($schema); } $tagIncludeParser->getGenerator()->getWsdl()->getContent()->getExternalSchemas()->rewind(); $this->assertEquals($schemaContainer, $tagIncludeParser->getGenerator()->getWsdl()->getContent()->getExternalSchemas()); }