function CoderReviewStyleTest::testStyleHerdocStrings in Coder 7.2
Same name and namespace in other branches
- 7 coder_review/tests/coder_review_style.test \CoderReviewStyleTest::testStyleHerdocStrings()
Tests for the correct style use of Heredocs.
File
- coder_review/
tests/ coder_review_style.test, line 154
Class
- CoderReviewStyleTest
- Class to test for the style of the required Drupal coding standards.
Code
function testStyleHerdocStrings() {
$this
->assertCoderReviewFail(" \$var = <<< __EOD__\n<br>\n__EOD__;");
$this
->assertCoderReviewFail(" \$var = <<< __EOD__\n<B>\n__EOD__;");
$this
->assertCoderReviewPass(" \$var = <<< __EOD__\n<br/>\n__EOD__;");
}