reioto/zend-db-testcase

Zend DB TestCase for DbUnit

1.1.1 2015-03-27 07:02 UTC

This package is not auto-updated.

Last update: 2024-12-21 17:34:41 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);
    }
}