/** * @covers ::bindParam */ public function testBindParamInvalidPosition() { $initial = 'foo'; $expected = 'bar'; $this->callbackCallParams = [$this->statement, static::SQL, [0 => $expected]]; $this->callbackReturnValue = $this->getPopulatedCollection(); $this->setExpectedException('Crate\\PDO\\Exception\\UnsupportedException'); $this->statement->bindParam(0, $initial); }