示例#1
0
 /** @codeCoverageIgnore */
 private function getConfig()
 {
     $Default = array('source' => $this->Source->getDirectory(), 'destination' => $this->Destination->getDirectory(), 'extensions' => array('php'), 'charset' => 'auto', 'main' => $this->Project, 'title' => $this->Title, 'templateConfig' => __DIR__ . '/../../../Vendor/Template/config.neon', 'groups' => 'auto', 'allowedHtml' => array('b', 'i', 'a', 'ul', 'ol', 'li', 'p', 'br', 'var', 'samp', 'kbd', 'tt'), 'autocomplete' => array('classes', 'constants', 'functions'), 'accessLevels' => array('public', 'protected', 'private'), 'internal' => true, 'php' => true, 'tree' => true, 'deprecated' => true, 'todo' => true, 'sourceCode' => true, 'download' => false, 'report' => $this->Destination->getDirectory() . DIRECTORY_SEPARATOR . '_improve.xml', 'wipeout' => false, 'quiet' => false, 'progressbar' => false, 'colors' => false, 'updateCheck' => false, 'debug' => false);
     if (null === $this->Exclude) {
         return $Default;
     } else {
         return array_merge($Default, array('exclude' => $this->Exclude->getGlobList()));
     }
 }
 public function testDirectoryParameter()
 {
     try {
         new DirectoryParameter(null);
     } catch (\Exception $E) {
         $this->assertInstanceOf('MOC\\V\\Component\\Documentation\\Component\\Exception\\Repository\\EmptyDirectoryException', $E);
     }
     $Parameter = new DirectoryParameter(__DIR__);
     $this->assertEquals(__DIR__, $Parameter->getDirectory());
     try {
         $Parameter->setDirectory(__FILE__);
     } catch (\Exception $E) {
         $this->assertInstanceOf('MOC\\V\\Component\\Documentation\\Component\\Exception\\Repository\\TypeDirectoryException', $E);
     }
 }