public function iShouldNotGetOneOfTheFollowing($list_string) { try { $this->iShouldGetOneOfTheFollowing($list_string); } catch (\Exception $e) { return true; } throw new \Exception("Actual output:\n" . $this->output); }