Exemple #1
0
 protected function setJsonAutoloads(Json $json)
 {
     $autoload = new Autoload("psr-0", $this->namespace);
     foreach ($this->getTestDirs() as $dir) {
         $autoload->addDirectory($dir);
     }
     $autoload->addDirectory($this->source->getRoot());
     $json->addAutoload($autoload);
 }
Exemple #2
0
 public function setUp()
 {
     $json = new Json(new JsonPrettyPrinter());
     $json->addRequirement(new Requirement("php", ">=5.3.0"));
     $autoload = new Autoload("psr-0", 'ProjectName');
     $autoload->addDirectory(new Directory("it"))->addDirectory(new Directory("test"))->addDirectory(new Directory("functional"));
     $json->addAutoload($autoload);
     $this->json = $json;
 }