/** * */ public function testOmniture() { $instance = self::omnitureGeneratorInstance(); $tutorial = new TutorialFile($instance, self::FILE_NAME); $tutorial->write(); $this->assertSameFileContent('ValidOmnitureTutorial', $tutorial); }
/** * 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; }