protected function setUp() { $chgname = get_class($this); if (substr($chgname, -4) == 'Test') { $chgname = substr($chgname, 0, -4); } $this->change = new $chgname(); }