You are here

function coder_test_stdclass in Coder 5.2

Same name and namespace in other branches
  1. 5 tests/coder_style.inc \coder_test_stdclass()

File

tests/coder_style.inc, line 23
This include file implements tests for the Drupal Standards as defined at http://drupal.org/coding-standards

Code

function coder_test_stdclass() {
  $var = new stdClass();

  // This is ok.
  $var = new StdClass();

  // This is not.
  $var = new stdclassToo();

  // Should be camelcase rule.
}