Replacement of assertEquals() to assertSame()
This commit is contained in:
@ -85,10 +85,10 @@ class MySQLiStatementTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
$this->setDriverGetConnectionMethod();
|
||||
$this->stmt->execute(array('place' => 'place_val', 'new' => 'new_val'));
|
||||
$this->assertEquals('OBJECT', $this->stmt->fetch());
|
||||
$this->assertEquals('ARRAY', $this->stmt->fetch(Db::FETCH_NUM));
|
||||
$this->assertEquals('ASSOC', $this->stmt->fetch(Db::FETCH_ASSOC));
|
||||
$this->assertEquals('ARRAY', $this->stmt->fetch(Db::FETCH_BOTH));
|
||||
$this->assertSame('OBJECT', $this->stmt->fetch());
|
||||
$this->assertSame('ARRAY', $this->stmt->fetch(Db::FETCH_NUM));
|
||||
$this->assertSame('ASSOC', $this->stmt->fetch(Db::FETCH_ASSOC));
|
||||
$this->assertSame('ARRAY', $this->stmt->fetch(Db::FETCH_BOTH));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -101,7 +101,7 @@ class MySQLiStatementTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
$this->setDriverGetConnectionMethod();
|
||||
$this->stmt->execute(array('place' => 'place_val', 'new' => 'new_val'));
|
||||
$this->assertEquals('OBJECT', $this->stmt->fetchObject());
|
||||
$this->assertSame('OBJECT', $this->stmt->fetchObject());
|
||||
}
|
||||
|
||||
/**
|
||||
@ -114,7 +114,7 @@ class MySQLiStatementTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
$this->setDriverGetConnectionMethod();
|
||||
$this->stmt->execute(array('place' => 'place_val', 'new' => 'new_val'));
|
||||
$this->assertEquals('OBJECT', $this->stmt->fetch());
|
||||
$this->assertSame('OBJECT', $this->stmt->fetch());
|
||||
}
|
||||
|
||||
/**
|
||||
@ -143,7 +143,7 @@ class MySQLiStatementTest extends PHPUnit_Framework_TestCase
|
||||
->method('getConnection')
|
||||
->will($this->returnValue($mysqliMock));
|
||||
|
||||
$this->assertEquals('AFFECTED_ROWS', $this->stmt->affectedRows());
|
||||
$this->assertSame('AFFECTED_ROWS', $this->stmt->affectedRows());
|
||||
}
|
||||
|
||||
public function testNumRowsNoResult()
|
||||
|
Reference in New Issue
Block a user