You are here

function CoderStyleTest::testStyleConstants in Coder 6.2

File

tests/coder_style.test, line 54

Class

CoderStyleTest

Code

function testStyleConstants() {
  $this
    ->assertCoderPass('  $a = TRUE;');
  $this
    ->assertCoderPass('  $atrue = "true";');
  $this
    ->assertCoderFail('  $a = true;');
  $this
    ->assertCoderFail('  $a =true;');
  $this
    ->assertCoderFail('  if ($a == true) {');
  $this
    ->assertCoderFail('    return false;');
}