You are here

function CoderReviewStyleTest::testStyleHerdocStrings in Coder 7

Same name and namespace in other branches
  1. 7.2 coder_review/tests/coder_review_style.test \CoderReviewStyleTest::testStyleHerdocStrings()

File

coder_review/tests/coder_review_style.test, line 103

Class

CoderReviewStyleTest

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__;");
}