/**
  * Sets the callback to the properties.
  *
  * @param callback $callback
  * @param boolean  $useCVSExcludes
  */
 public function __construct($callback, $useCVSExcludes = true)
 {
     $this->callback = $callback;
     $this->denyAllow = Stagehand_AccessControl::denyAllow();
     $this->addExclude('^\\.$');
     $this->addExclude('^\\.\\.$');
     if ($useCVSExcludes) {
         foreach ($this->cvsExcludes as $cvsExclude) {
             $this->addExclude($cvsExclude);
         }
     }
 }
 /**
  * Initializes some properties of an instance.
  *
  * @param Stagehand_TestRunner_Config $config
  */
 public function __construct(Stagehand_TestRunner_Config $config)
 {
     $this->config = $config;
     $this->allowDeny = Stagehand_AccessControl::allowDeny();
     if (!is_null($this->include)) {
         $this->allowDeny->allow($this->include);
     }
     if (!is_null($this->exclude)) {
         $this->allowDeny->deny($this->exclude);
     }
     $this->suite = $this->createTestSuite('The test suite generated by Stagehand_TestRunner');
 }
 public function setUp()
 {
     $this->control = Stagehand_AccessControl::allowDeny();
 }