예제 #1
0
 /**
  * @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);
 }
예제 #2
0
파일: maam.php 프로젝트: michaelmoussa/maam
#!/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);