Add association @group from exceptions mysql of the tests

This commit is contained in:
Vyacheslav Agafonov
2011-12-05 13:34:49 +04:00
parent 1a1ccabcd3
commit 24c2a97f51
3 changed files with 44 additions and 7 deletions

View File

@ -53,6 +53,7 @@ class MySQLiStatementTest extends PHPUnit_Framework_TestCase
/**
* @runInSeparateProcess
* @group MySQL
*/
public function testFetchNoResult()
{
@ -64,6 +65,7 @@ class MySQLiStatementTest extends PHPUnit_Framework_TestCase
/**
* @runInSeparateProcess
* @group MySQL
*/
public function testDriverExecuteNoResult()
{
@ -77,6 +79,7 @@ class MySQLiStatementTest extends PHPUnit_Framework_TestCase
/**
* @runInSeparateProcess
* @group MySQL
*/
public function testFetch()
{
@ -93,6 +96,7 @@ class MySQLiStatementTest extends PHPUnit_Framework_TestCase
/**
* @runInSeparateProcess
* @group MySQL
*/
public function testFetchObject()
{
@ -106,6 +110,7 @@ class MySQLiStatementTest extends PHPUnit_Framework_TestCase
/**
* @runInSeparateProcess
* @group MySQL
*/
public function testFetchWithDebug()
{
@ -119,6 +124,7 @@ class MySQLiStatementTest extends PHPUnit_Framework_TestCase
/**
* @runInSeparateProcess
* @group MySQL
*/
public function testClose()
{
@ -133,6 +139,9 @@ class MySQLiStatementTest extends PHPUnit_Framework_TestCase
$this->assertAttributeEquals(null, 'result', $this->stmt);
}
/**
* @group MySQL
*/
public function testAffectedRows()
{
$mysqliMock = $this->getMockBuilder('MysqliDrvr');
@ -146,6 +155,9 @@ class MySQLiStatementTest extends PHPUnit_Framework_TestCase
$this->assertSame('AFFECTED_ROWS', $this->stmt->affectedRows());
}
/**
* @group MySQL
*/
public function testNumRowsNoResult()
{
$this->assertFalse($this->stmt->numRows());
@ -154,6 +166,7 @@ class MySQLiStatementTest extends PHPUnit_Framework_TestCase
/**
* @runInSeparateProcess
* @TODO: exception just for code coverage - could not mock mysqli properties
* @group MySQL
*/
public function testNumRows()
{
@ -168,6 +181,7 @@ class MySQLiStatementTest extends PHPUnit_Framework_TestCase
/**
* @runInSeparateProcess
* @group MySQL
*/
public function testFetchInvalidMode()
{