public function assertEqualsNoWs($expected, $actual) { // remove white space before query comparison $expectedStripped = strtolower(preg_replace('/\\s/', '', $expected)); $actualStripped = strtolower(preg_replace('/\\s/', '', $actual)); return parent::assertEquals($expectedStripped, $actualStripped); }
public function tearDown() { if ($this->_dbWasUsed) { // clean up cache database tables $this->_cacheBackend->uninstall(); } parent::tearDown(); }
public function setUp() { $this->markTestNeedsDatabase(); $this->_store = $this->getStore(); $this->authenticateDbUser(); //create model $model = $this->_store->getNewModel($this->_modelUri, '', Erfurt_Store::MODEL_TYPE_OWL, false); $this->_instances = new OntoWiki_Model_Instances($this->_store, new Erfurt_Rdf_Model($this->_modelUri, null, $this->_store)); $this->addTestData(); parent::setUp(); }
public function setUp() { $this->markTestNeedsTestConfig(); $this->markTestNeedsDatabase(); $this->_erfurtApp = Erfurt_App::getInstance(); $this->_store = $this->_erfurtApp->getStore(); $this->authenticateDbUser(); $this->_modelUri = 'http://example.org/graph123/'; $this->_addTestData(); parent::setUp(); }
protected function tearDown() { Erfurt_Wrapper_Registry::reset(); parent::tearDown(); }
public function setUp() { $this->_fileBase = realpath(dirname(__FILE__)) . '/_files/'; parent::setUp(); }