class Test in Coder 8.2
Same name in this branch
- 8.2 coder_sniffer/DrupalPractice/Test/Objects/UnusedPrivateMethodUnitTest.inc \Test
- 8.2 coder_sniffer/Drupal/Test/Semantics/FunctionTUnitTest.inc \Test
- 8.2 coder_sniffer/Drupal/Test/Commenting/InlineCommentUnitTest.inc \Test
- 8.2 coder_sniffer/Drupal/Test/Commenting/VariableCommentUnitTest.inc \Test
- 8.2 coder_sniffer/Drupal/Test/Commenting/DataTypeNamespaceUnitTest.inc \Foo\Bar\Test
- 8.2 coder_sniffer/Drupal/Test/Commenting/FunctionCommentUnitTest.inc \Test
- 8.2 coder_sniffer/Drupal/Test/Commenting/DocCommentAlignmentUnitTest.inc \Test
- 8.2 coder_sniffer/Drupal/Test/Classes/PropertyDeclarationUnitTest.inc \Test
- 8.2 coder_sniffer/Drupal/Test/NamingConventions/ValidFunctionNameUnitTest.inc \Test
Same name and namespace in other branches
- 8.3 tests/DrupalPractice/Objects/UnusedPrivateMethodUnitTest.inc \Test
- 8.3 tests/Drupal/Semantics/FunctionTUnitTest.inc \Test
- 8.3 tests/Drupal/Commenting/DocCommentUnitTest.inc \Test
- 8.3 tests/Drupal/Commenting/InlineCommentUnitTest.inc \Test
- 8.3 tests/Drupal/Commenting/HookCommentUnitTest.inc \Test
- 8.3 tests/Drupal/Commenting/FunctionCommentUnitTest.inc \Test
- 8.3 tests/Drupal/Commenting/DocCommentAlignmentUnitTest.inc \Test
- 8.3 tests/Drupal/Classes/PropertyDeclarationUnitTest.inc \Test
- 8.3 tests/Drupal/NamingConventions/ValidFunctionNameUnitTest.inc \Test
- 8.3.x tests/DrupalPractice/Objects/UnusedPrivateMethodUnitTest.inc \Test
- 8.3.x tests/Drupal/Semantics/FunctionTUnitTest.inc \Test
- 8.3.x tests/Drupal/Commenting/DocCommentUnitTest.inc \Test
- 8.3.x tests/Drupal/Commenting/InlineCommentUnitTest.inc \Test
- 8.3.x tests/Drupal/Commenting/HookCommentUnitTest.inc \Test
- 8.3.x tests/Drupal/Commenting/FunctionCommentUnitTest.inc \Test
- 8.3.x tests/Drupal/Commenting/DocCommentAlignmentUnitTest.inc \Test
- 8.3.x tests/Drupal/Classes/PropertyDeclarationUnitTest.inc \Test
- 8.3.x tests/Drupal/NamingConventions/ValidFunctionNameUnitTest.inc \Test
Hierarchy
- class \Test
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.
File
- coder_sniffer/
Drupal/ Test/ Semantics/ FunctionTUnitTest.inc, line 22
View source
class Test {
public function doSomething() {
return $this
->t('This string should avoid backslashes for \'');
}
public function doSomethingElse() {
return new TranslatableMarkup('Do not ' . 'concatenate');
}
public function doSomethingMore() {
return new TranslationWrapper(' Do not start with a space');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Test:: |
public | function | ||
Test:: |
public | function | ||
Test:: |
public | function |