You are here

class Test in Coder 8.2

Same name in this branch
  1. 8.2 coder_sniffer/DrupalPractice/Test/Objects/UnusedPrivateMethodUnitTest.inc \Test
  2. 8.2 coder_sniffer/Drupal/Test/Semantics/FunctionTUnitTest.inc \Test
  3. 8.2 coder_sniffer/Drupal/Test/Commenting/InlineCommentUnitTest.inc \Test
  4. 8.2 coder_sniffer/Drupal/Test/Commenting/VariableCommentUnitTest.inc \Test
  5. 8.2 coder_sniffer/Drupal/Test/Commenting/DataTypeNamespaceUnitTest.inc \Foo\Bar\Test
  6. 8.2 coder_sniffer/Drupal/Test/Commenting/FunctionCommentUnitTest.inc \Test
  7. 8.2 coder_sniffer/Drupal/Test/Commenting/DocCommentAlignmentUnitTest.inc \Test
  8. 8.2 coder_sniffer/Drupal/Test/Classes/PropertyDeclarationUnitTest.inc \Test
  9. 8.2 coder_sniffer/Drupal/Test/NamingConventions/ValidFunctionNameUnitTest.inc \Test
Same name and namespace in other branches
  1. 8.3 tests/DrupalPractice/Objects/UnusedPrivateMethodUnitTest.inc \Test
  2. 8.3 tests/Drupal/Semantics/FunctionTUnitTest.inc \Test
  3. 8.3 tests/Drupal/Commenting/DocCommentUnitTest.inc \Test
  4. 8.3 tests/Drupal/Commenting/InlineCommentUnitTest.inc \Test
  5. 8.3 tests/Drupal/Commenting/HookCommentUnitTest.inc \Test
  6. 8.3 tests/Drupal/Commenting/FunctionCommentUnitTest.inc \Test
  7. 8.3 tests/Drupal/Commenting/DocCommentAlignmentUnitTest.inc \Test
  8. 8.3 tests/Drupal/Classes/PropertyDeclarationUnitTest.inc \Test
  9. 8.3 tests/Drupal/NamingConventions/ValidFunctionNameUnitTest.inc \Test
  10. 8.3.x tests/DrupalPractice/Objects/UnusedPrivateMethodUnitTest.inc \Test
  11. 8.3.x tests/Drupal/Semantics/FunctionTUnitTest.inc \Test
  12. 8.3.x tests/Drupal/Commenting/DocCommentUnitTest.inc \Test
  13. 8.3.x tests/Drupal/Commenting/InlineCommentUnitTest.inc \Test
  14. 8.3.x tests/Drupal/Commenting/HookCommentUnitTest.inc \Test
  15. 8.3.x tests/Drupal/Commenting/FunctionCommentUnitTest.inc \Test
  16. 8.3.x tests/Drupal/Commenting/DocCommentAlignmentUnitTest.inc \Test
  17. 8.3.x tests/Drupal/Classes/PropertyDeclarationUnitTest.inc \Test
  18. 8.3.x tests/Drupal/NamingConventions/ValidFunctionNameUnitTest.inc \Test

Test class with properties.

Hierarchy

Expanded class hierarchy of Test

7 string references to 'Test'
CoderSniffUnitTest::testSniff in coder_sniffer/Drupal/Test/CoderSniffUnitTest.php
Tests the extending classes Sniff class.
DefaultValueSanitizeUnitTest.inc in coder_sniffer/DrupalPractice/Test/FunctionCalls/DefaultValueSanitizeUnitTest.inc
ExampleService::test3 in coder_sniffer/DrupalPractice/Test/Objects/src/ExampleService.php
t() should not be used, translation service should be injected.
FunctionTUnitTest.inc in coder_sniffer/Drupal/Test/Semantics/FunctionTUnitTest.inc
good.php in coder_sniffer/Drupal/Test/good/good.php
This file contains all the valid notations for the drupal coding standard.

... See full list

File

coder_sniffer/Drupal/Test/Commenting/VariableCommentUnitTest.inc, line 11
Test file.

View source
class Test {

  /**
   * The data type declaration should not end with a dot.
   *
   * @var \Drupal\locale\StringStorageInterface.
   */
  protected $localeStorage;

  /**
   * Multiple type declarations can be declared, separated by pipes.
   *
   * @var \Drupal\Core\Entity\EntityInterface|null
   */
  protected $entity;

  /**
   * Test for some common misspellings.
   *
   * @var Boolean|stdClass|NULL|FALSE|TRUE|[]
   */
  protected $someVar;

  /**
   * A variable name should not follow the type declaration.
   *
   * @var \Drupal\Core\Session\AccountProxyInterface $user
   */
  protected $user;

  // A doc comment should be used here.
  protected $wrongCommentStyle;

  // Wrong style with var keyword.
  var $varStyle;

}

Members

Namesort descending Modifiers Type Description Overrides
Test::$entity protected property Multiple type declarations can be declared, separated by pipes.
Test::$localeStorage protected property The data type declaration should not end with a dot.
Test::$someVar protected property Test for some common misspellings.
Test::$user protected property A variable name should not follow the type declaration.
Test::$varStyle property
Test::$wrongCommentStyle protected property