/** * @depends testIsValidWithMinimalSetup * @dataProvider provideMethodsValues * @expectedException \BadMethodCallException */ public function testCannotBeChangedWhenFrozen($field, $value) { // minimal setup $this->request->setListId(1); $this->request->setEmail('*****@*****.**'); $this->request->freeze(); $setter = 'set' . ucfirst($field); $this->request->{$setter}($value); }