private function checkMethod($methodName) { if (isset($this->testMethods[$methodName]) === false) { throw new exceptions\logic\invalidArgument('Test method ' . $this->class . '::' . $methodName . '() does not exist'); } return $this; }