/** * @param \Rawebone\Ormish\Table $tbl * @param \Rawebone\Ormish\SqlGeneratorInterface $gen * @param \Rawebone\Ormish\Executor $ex */ function it_should_include_additional_params($tbl, $gen, $ex) { $tbl->table()->willReturn("table"); $gen->findWhere("table", "a = ?")->willReturn("query"); $ex->query("query", array(1))->willThrow(new ExecutionException("", "", "", array())); $this->run("a = ?", 1)->shouldReturn(array()); }