/**
  * Constructor. Save internally the reference to the passed fixture manager
  *
  * @param \CakeDC\OracleDriver\TestSuite\Fixture\OracleFixtureManager $manager The fixture manager
  */
 public function __construct(OracleFixtureManager $manager)
 {
     if (isset($_SERVER['argv'])) {
         $manager->setDebug(in_array('--debug', $_SERVER['argv']));
     }
     $this->_fixtureManager = $manager;
     $this->_fixtureManager->shutDown();
 }
 /**
  * Chooses which fixtures to load for a given test
  *
  * Each parameter is a code module name that corresponds to a fixture, i.e. package, procedure or function name.
  *
  * @return void
  * @throws \Exception when no fixture manager is available.
  */
 public function loadMethodFixtures()
 {
     if (empty($this->methodFixtureManager)) {
         throw new Exception('No fixture manager to load the test fixture');
     }
     $args = func_get_args();
     foreach ($args as $class) {
         $this->methodFixtureManager->loadSingle($class, null, $this->dropTables);
     }
 }
 /**
  * Unloads fixtures from the test case.
  *
  * @param \PHPUnit_Framework_Test $test The test case
  * @param float $time current time
  * @return void
  */
 public function endTest(PHPUnit_Framework_Test $test, $time)
 {
     if ($test instanceof TestCase) {
         $this->_fixtureManager->unload($test);
     }
 }