function CoderReviewStyleTest::testStyleConstants in Coder 7.2
Same name and namespace in other branches
- 7 coder_review/tests/coder_review_style.test \CoderReviewStyleTest::testStyleConstants()
Tests for correct use of TRUE/FALSE constants.
File
- coder_review/
tests/ coder_review_style.test, line 81
Class
- CoderReviewStyleTest
- Class to test for the style of the required Drupal coding standards.
Code
function testStyleConstants() {
$this
->assertCoderReviewPass(' $a = TRUE;');
$this
->assertCoderReviewPass(' $atrue = "true";');
$this
->assertCoderReviewFail(' $a = true;');
$this
->assertCoderReviewFail(' $a =true;');
$this
->assertCoderReviewFail(' if ($a == true) {');
$this
->assertCoderReviewFail(' return false;');
}