1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-14 02:17:31 +01:00
PHP-Parser/test/code/prettyPrinter/comments.test
nikic 81e53ce0ff Insert comments when pretty printing
This changset also adds unit tests for Comments and adds a way to test the
pretty printer.
2012-05-11 16:18:14 +02:00

54 lines
804 B
Plaintext

Comments
-----
<?php
namespace JustForIndentation {
// Some text
# Some text
/* Some text */
/** Some text */
/**
* Some text.
* Some more text.
*/
/*
* Some text.
* Some more text.
*/
/*
Some text.
Some more text.
*/
/* Some text.
More text. */
/* Some text.
More text.
Even more text. */
$foo;
}
-----
namespace JustForIndentation {
// Some text
# Some text
/* Some text */
/** Some text */
/**
* Some text.
* Some more text.
*/
/*
* Some text.
* Some more text.
*/
/*
Some text.
Some more text.
*/
/* Some text.
More text. */
/* Some text.
More text.
Even more text. */
$foo;
}