You are here

class Test in Coder 8.3

Same name in this branch
  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/DataTypeNamespaceUnitTest.inc \Foo\Bar\Test
  7. 8.3 tests/Drupal/Commenting/FunctionCommentUnitTest.inc \Test
  8. 8.3 tests/Drupal/Commenting/DocCommentAlignmentUnitTest.inc \Test
  9. 8.3 tests/Drupal/Classes/PropertyDeclarationUnitTest.inc \Test
  10. 8.3 tests/Drupal/NamingConventions/ValidFunctionNameUnitTest.inc \Test
Same name and namespace in other branches
  1. 8.2 coder_sniffer/Drupal/Test/Commenting/DataTypeNamespaceUnitTest.inc \Foo\Bar\Test
  2. 8.3.x tests/Drupal/Commenting/DataTypeNamespaceUnitTest.inc \Foo\Bar\Test

Test.

Hierarchy

  • class \Foo\Bar\Test

Expanded class hierarchy of Test

12 string references to 'Test'
DefaultValueSanitizeUnitTest.inc in tests/DrupalPractice/FunctionCalls/DefaultValueSanitizeUnitTest.inc
drupal8.info.yml in tests/Drupal/Classes/drupal8/drupal8.info.yml
tests/Drupal/Classes/drupal8/drupal8.info.yml
drupal8.info.yml in tests/Drupal/good/drupal8/drupal8.info.yml
tests/Drupal/good/drupal8/drupal8.info.yml
ExampleClass::test4 in tests/DrupalPractice/Objects/drupal8/ExampleClass.php
t() should not be used, instead we should use the StringTranslationTrait.
ExampleClassWithDependencyInjection::test4 in tests/DrupalPractice/Objects/drupal8/ExampleClassWithDependencyInjection.php
t() should not be used, instead we should use the StringTranslationTrait.

... See full list

File

tests/Drupal/Commenting/DataTypeNamespaceUnitTest.inc, line 10

Namespace

Foo\Bar
View source
class Test {

  /**
   * Param and Return data types should be fully namespaced.
   *
   * @param TestClass $y
   *   Some description.
   *
   * @return TestClass
   *   Yep.
   *
   * @throws TestClass
   */
  public function test1(TestClass $y) {
    return $y;
  }

  /**
   * Inline var data types should be converted.
   */
  public function test2(array $x) {

    /** @var TestClass $y */
    $y = $x['test'];
    return $y;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Test::test1 public function Param and Return data types should be fully namespaced.
Test::test2 public function Inline var data types should be converted.