You are here

StrictSchemaDisabledUnitTest.inc in Coder 8.3.x

Same filename and directory in other branches
  1. 8.3 tests/DrupalPractice/Objects/StrictSchemaDisabledUnitTest.inc

File

tests/DrupalPractice/Objects/StrictSchemaDisabledUnitTest.inc
View source
<?php

/**
 * Test class with strict config schema checking disabled.
 */
class TestFalse {

  /**
   * Disable strict config checking during testing.
   */
  protected $strictConfigSchema = FALSE;

}
class TestNull {
  protected $strictConfigSchema = NULL;
  public function strictConfigSchema() {

    // This is ok because it's non-member variable.
    $strictConfigSchema = FALSE;
    return $strictConfigSchema;
  }

}
class TestNoDefault {
  protected $strictConfigSchema;

}
class TestMultipleVars {
  protected $foo, $strictConfigSchema = FALSE, $bar;

}
class NormalClass {

  /**
   * This is OK because it isn't a test class.
   */
  protected $stictConfigSchema = FALSE;

}
trait TestTrait {
  protected $strictConfigSchema;

}

Classes

Namesort descending Description
NormalClass
TestFalse Test class with strict config schema checking disabled.
TestMultipleVars
TestNoDefault
TestNull

Traits

Namesort descending Description
TestTrait