getFiles() public method

public getFiles ( ) : GeneratorFiles
return GeneratorFiles
コード例 #1
0
 /**
  * @param string $dir
  * @param string $wsdl
  */
 private function generate($dir, $wsdl, $standalone = true)
 {
     Utils::createDirectory($destination = self::getTestDirectory() . $dir);
     $options = GeneratorOptions::instance();
     $options->setGenerateTutorialFile(false)->setAddComments(array())->setArraysFolder('ArrayType')->setBasicLogin('')->setBasicPassword('')->setCategory(GeneratorOptions::VALUE_CAT)->setComposerName($standalone ? 'wsdltophp/' . $dir : '')->setDestination($destination)->setEnumsFolder('EnumType')->setGatherMethods(GeneratorOptions::VALUE_START)->setGenerateTutorialFile(true)->setGenericConstantsName(false)->setNamespace('')->setOrigin($wsdl)->setPrefix('')->setProxyHost('')->setProxyLogin('')->setProxyPassword('')->setProxyPort('')->setServicesFolder('ServiceType')->setSoapClientClass('\\WsdlToPhp\\PackageBase\\AbstractSoapClientBase')->setSoapOptions(array())->setStandalone($standalone)->setStructArrayClass('\\WsdlToPhp\\PackageBase\\AbstractStructArrayBase')->setStructClass('\\WsdlToPhp\\PackageBase\\AbstractStructBase')->setStructsFolder('StructType')->setSuffix('');
     $generator = new Generator($options);
     $generator->generatePackage();
     $this->assertTrue(is_dir($destination));
     if ($standalone) {
         $this->assertTrue(is_file(sprintf('%s/composer.json', $destination)));
         $this->assertTrue(is_file(sprintf('%s/composer.lock', $destination)));
     }
     $this->assertTrue(is_file(sprintf('%s/tutorial.php', $destination)));
     $this->assertTrue(is_file($generator->getFiles()->getClassmapFile()->getFileName()));
 }