Ejemplo n.º 1
0
 public function __construct()
 {
     $this->sfPropelData = new sfPropelData();
     $this->testDataDir = SF_ROOT_DIR . '/test/fixtures';
     if (!is_readable($this->testDataDir)) {
         throw new RuntimeException('Could not read directory ' . $this->testDataDir);
     }
     parent::__construct();
 }
Ejemplo n.º 2
0
 public function __construct($fixturesFileOrDir = null, $plan = null)
 {
     if ($fixturesFileOrDir === null) {
         $this->testDataDir = SF_ROOT_DIR . '/test/fixtures';
     } else {
         if (file_exists($fixturesFileOrDir)) {
             $this->testDataDir = $fixturesFileOrDir;
         } else {
             throw new RuntimeException($fixturesFileOrDir . ': No such file or directory');
         }
     }
     if (!is_readable($this->testDataDir)) {
         throw new RuntimeException($this->testDataDir . ': Could not read file or directory');
     }
     parent::__construct($plan);
 }
Ejemplo n.º 3
0
 public function __construct(PHPUnit_Framework_TestCase $testCase)
 {
     $this->testCase = $testCase;
     parent::__construct(null, null);
 }
Ejemplo n.º 4
0
 /**
  * @param int $plan
  * @param lime_output $outputInstance
  * @return null
  */
 public function __construct($plan = null, $outputInstance = null)
 {
     parent::__construct($plan, is_null($outputInstance) ? new lime_output_color() : $outputInstance);
 }
Ejemplo n.º 5
0
 function __construct($comments = false)
 {
     parent::__construct();
     $this->_comments = $comments;
 }