Change Summary:
Added an option to select where to fail
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+178 -54) |
Review Request #398 — Created Dec. 2, 2015 and discarded
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));
Added an option to select where to fail
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+178 -54) |
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 3 (+166 -49) |