private function getClassWithBraceTextAndNewMethod() { return <<<'BRACE_TEXT_RESULT_CLASS' <?php namespace MyNamespace; final class MyClass { public function braceMethod() { return "{$foo}"; } public function newMethod() { return 'newSomething'; } } BRACE_TEXT_RESULT_CLASS; }