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(); }
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); }
public function __construct(PHPUnit_Framework_TestCase $testCase) { $this->testCase = $testCase; parent::__construct(null, null); }
/** * @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); }
function __construct($comments = false) { parent::__construct(); $this->_comments = $comments; }