public function testIndent() { static::assertSame(<<<'EOT' foo( 5, 'A B'); EOT , CodegenUtil::indent(<<<'EOT' foo( 5, 'A B'); EOT , ' ')); static::assertSame(<<<'EOT' /** * @return string */ function foo() { /* * Non-doc comment. */ return 'a b'; } EOT , CodegenUtil::indent(<<<'EOT' /** * @return string */ function foo() { /* * Non-doc comment. */ return 'a b'; } EOT , ' ')); }