reioto / zend-db-testcase
Zend DB TestCase for DbUnit
1.1.1
2015-03-27 07:02 UTC
Requires
- phpunit/dbunit: ~1.2
- phpunit/phpunit: >=3.7
- zendframework/zend-db: ~2.0
This package is not auto-updated.
Last update: 2024-11-09 16:58:30 UTC
README
This library is Database TestCase using ZendFramework2 for PHPUnit
Installation via composer
$ php composer.phar require "reioto/zend-db-testcase:*"
Usage
class fooTest extends \Zend\Db\TestCase { public function getDataSet() { return $this->createFlatXMLDataSet('sample.xml'); } /** * @return array Zend\Db\Adapter\Adapter parameters */ protected function getDbConfig() { return array('username'=>'dbuser', 'password'=> 'dbpassword', 'dbname'=>'dbname', 'driver'=>'Pdo_Mysql' ); } public function testSample() { $this->assertEquals(true, true); } }