/** * @runInSeparateProcess */ public function testWontGenerateFileIfItContainsOnlyNonMaamAnnotations() { $this->assertTrue(!file_exists(self::$generationPath . '/MaamTest/NonMaamAnnotations.php')); $generator = new Generator(self::$assetDir, self::$generationPath); $classMap = $generator->generate(); $this->assertTrue(!file_exists(self::$generationPath . '/MaamTest/NonMaamAnnotations.php')); $this->assertArrayNotHasKey('MaamTest\\NonMaamAnnotations', $classMap); }
#!/usr/bin/env php <?php use Moose\Maam\Generator\Generator; require $argv[1]; $classMap = []; $generator = new Generator($argv[2], $argv[3]); $classMap = $generator->generate(); echo "Rebuilt classmap:\n"; var_dump($classMap);