synapsestudios/synapse-base — pull request #141 by paulstatezny (2014-12-04 19:52:16+00:00)
Title: MapperTestCase: Add Support for Parameterized Queries

## MapperTestCase: Add Support for Parameterized Queries

### Acceptance Criteria
1. When using MapperTestCase to collect queries that are run, this error doesn't occur:

```
Argument 1 passed to Synapse\Mapper\AbstractMapper::execute() must be an instance of Zend\Db\Sql\PreparableSqlInterface, instance of Synapse\TestHelper\MockQueryResult given
```

### Tasks
- Modify MapperTestCase's mock of `Zend\Db\Adapter\Adapter::query` to handle parameters as 2nd argument, just like the actual adapter does.

### Additional Notes
- See `MapperTestCase::setUpMockAdapter` -- this is where the mocking occurs.