Inheritance: extends AbstractFile
コード例 #1
0
 /**
  *
  */
 public function testOmniture()
 {
     $instance = self::omnitureGeneratorInstance();
     $tutorial = new TutorialFile($instance, self::FILE_NAME);
     $tutorial->write();
     $this->assertSameFileContent('ValidOmnitureTutorial', $tutorial);
 }
コード例 #2
0
 /**
  * Generates tutorial file
  * @return GeneratorFiles
  */
 private function generateTutorialFile()
 {
     if ($this->generator->getOptionGenerateTutorialFile() === true && $this->getClassmapFile() instanceof ClassMapFile) {
         $tutorialFile = new TutorialFile($this->generator, 'tutorial');
         $tutorialFile->write();
     }
     return $this;
 }