/** * Runs our method calls * * @access private * @param String $call The call we want to make * @param PHPUnit_Fixture_DB $fixture Our test fixture. * @return bool $result * * @todo Functionality is scarily simular to PHPUnit_Fixture_DB's callMethod * */ private function _runTableMethod($call, $fixture) { if ($fixture instanceof PHPUnit_Fixture_DB) { return $this->_fixMan->fixtureMethodCheck($call, $fixture); } else { throw new ErrorException('Must be a decendant of PHPUnit_Fixtures'); } }
/** * Used to call our CRUD methods, which we use to control our DB state (clean, truncate, delete, etc). * * @access private * @param String $call The call we want to make. * @return bool * */ protected function _callMethod($call) { try { $result = $this->_fixMan->fixtureMethodCheck($call, $this); } catch (Exception $e) { $result = false; $e->getMessage(); } return $result; }