[Halo] Allow mocked MySQL results for multiple queries
Review Request #398 — Created Dec. 2, 2015 and discarded — Latest diff uploaded
Information | |
---|---|
smillernl | |
Lunr | |
personal/sean/multiple_mysqlmock_result_expects | |
Reviewers | |
lunr | |
tardypad |
Calling for example
expectQuerySuccess()
only allows one mocked query while you might need more. This adds a parameter to select how many queries you need.
Example:$this->expectQuerySuccess(3); $this->result->expects($this->exactly(3)) ->method('affected_rows') ->will($this->returnValue(10));
Diff Revision 2
This is not the most recent revision of the diff. The latest diff is revision 4. See what's changed.
orig
1
2
3
4
src/Lunr/Core/Autoloader.php |
---|
src/Lunr/Core/Tests/AutoloaderTest.php |
---|
src/Lunr/Halo/DatabaseAccessObjectSelectQueryTestTrait.php |
---|
tests/statics/Core/PSR4TestFile.php |
---|
tests/statics/Core/PSR-4/PSR4TestFile.php |
---|