public function testGetterSetters($method) { $this->_object->{'set' . $method}(true); $this->assertTrue($this->_object->{'get' . $method}()); $this->_object->{'set' . $method}(false); $this->assertTrue(!$this->_object->{'get' . $method}()); }