sebastianbergmann / dbunit

DbUnit port for PHP/PHPUnit.
https://phpunit.de/
Other
225 stars 186 forks source link

assertTableRowCount causes fatal error when trying to call self::getConnection #80

Closed chrisminett closed 11 years ago

chrisminett commented 11 years ago

DBUnit 1.2.2

PHPUnit_Extensions_Database_TestCase line 261

Method isn't static, call to get connection needs to be made using $this, to get the concrete class's getConnection() method.

When using $this->assertTableRowCount() I get: Fatal error: Cannot call abstract method PHPUnit_Extensions_Database_TestCase::getConnection() in /usr/lib/php/pear/PHPUnit/Extensions/Database/TestCase.php on line 261

elazar commented 11 years ago

Fixed by b30498602701358bc32a2824ef60adcf1d92a8d7. Thanks!