/** * @expectedException \BadMethodCallException * @expectedExceptionMessage Method is not allowed when datasource is not processed. */ public function testBindParametersFailsWhenDatagridIsEmpty() { $this->datasource->bindParameters(['foo']); }