Skip to content

Commit

Permalink
* remove MDB2/MDB2#sqlite tests from setUp()
Browse files Browse the repository at this point in the history
 * add single require_once to TestInit
 (>> gets rid off undefined index error :S)



git-svn-id: http://svn.php.net/repository/pear/packages/Mail_Queue/trunk@303867 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
till committed Sep 29, 2010
1 parent fe1fb64 commit 1439654
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Mail/QueueAbstract.php
Expand Up @@ -35,6 +35,7 @@ public function setUp()
if (!extension_loaded('sqlite')) {
$this->skip("You need ext/sqlite to run this test suite.");
}
/*
include_once "MDB2.php";
include_once "MDB2/Driver/sqlite.php";
Expand All @@ -44,7 +45,7 @@ public function setUp()
if (!class_exists('MDB2_Driver_sqlite')) {
$this->skip("MDB2's sqlite driver is necessary to run these tests: pear install MDB2#sqlite");
}

*/
$this->dsn = 'sqlite:///' . __DIR__ . "/{$this->db}?mode=0644";

$this->setUpDatabase($this->dsn);
Expand Down
2 changes: 2 additions & 0 deletions tests/TestInit.php
Expand Up @@ -7,6 +7,8 @@
exit(1);
}

require_once 'MDB2.php';

class TestInit
{
public static function autoload($className)
Expand Down

0 comments on commit 1439654

Please sign in to comment.