setUp() public method

public setUp ( )
Beispiel #1
0
 public function setUp()
 {
     parent::setUp();
     $records = new ProductCollection();
     $records->delete();
     $records = new ProductImageCollection();
     $records->delete();
 }
Beispiel #2
0
 public function setUp()
 {
     if (!extension_loaded('pdo_' . $this->driver)) {
         $this->markTestSkipped('pdo_' . $this->driver . ' extension is required for model testing');
         return;
     }
     parent::setUp();
 }
 public function setUp()
 {
     $products = new ProductCollection();
     foreach ($products as $product) {
         $product->delete();
     }
     parent::setUp();
 }
 public function setUp()
 {
     if (!extension_loaded('xhprof')) {
         return $this->markTestSkipped('profiling requires xhprof extension.');
     }
     if (!isset($_ENV['XHPROF_ROOT'])) {
         return $this->markTestSkipped('XHPROF_ROOT environment variable must be set.');
     }
     if ($N = getenv('N')) {
         $this->N = $N;
     }
     /*
     if (extension_loaded('xhprof') ) {
         // ini_set('xhprof.output_dir','/tmp');
     }
     */
     parent::setUp();
     $this->startTime = microtime(true);
     xhprof_enable(XHPROF_FLAGS_CPU | XHPROF_FLAGS_MEMORY, ['ignored_functions' => []]);
 }