I followed this link http://www.phpunit.de/manual/3.6/en/database.html there i found some useful details of php db unit testing.But i have one doubt .Where we need to enter the mysql configuration details Any Idea
The code is like this
require_once “PHPUnit/Extensions/Database/TestCase.php”;
class MyGuestbookTest extends PHPUnit_Extensions_Database_TestCase {
public function getConnection() { $pdo = new PDO('sqlite::memory:'); return $this->createDefaultDBConnection($pdo, ':memory:'); } public function getDataSet() { return$this->createFlatXMLDataSet(dirname(FILE).’/_files/guestbook-seed.xml’);
} }
I am using MySQL.Can any one answer me for this where i need to enter the mysql username password and database name
1 Answer