First commit
This commit is contained in:
commit
c6e2478c40
13918 changed files with 2303184 additions and 0 deletions
12
modules/simpletest/tests/psr_4_test/psr_4_test.info
Normal file
12
modules/simpletest/tests/psr_4_test/psr_4_test.info
Normal file
|
@ -0,0 +1,12 @@
|
|||
name = PSR-4 Test cases
|
||||
description = Test classes to be discovered by simpletest.
|
||||
core = 7.x
|
||||
|
||||
hidden = TRUE
|
||||
package = Testing
|
||||
|
||||
; Information added by Drupal.org packaging script on 2017-06-21
|
||||
version = "7.56"
|
||||
project = "drupal"
|
||||
datestamp = "1498069849"
|
||||
|
1
modules/simpletest/tests/psr_4_test/psr_4_test.module
Normal file
1
modules/simpletest/tests/psr_4_test/psr_4_test.module
Normal file
|
@ -0,0 +1 @@
|
|||
<?php
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\psr_4_test\Tests;
|
||||
|
||||
class ExampleTest extends \DrupalWebTestCase {
|
||||
|
||||
public static function getInfo() {
|
||||
return array(
|
||||
'name' => 'PSR4 example test: PSR-4 in disabled modules.',
|
||||
'description' => 'We want to assert that this test case is being discovered.',
|
||||
'group' => 'SimpleTest',
|
||||
);
|
||||
}
|
||||
|
||||
function testArithmetics() {
|
||||
$this->assert(1 + 1 == 2, '1 + 1 == 2');
|
||||
}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\psr_4_test\Tests\Nested;
|
||||
|
||||
class NestedExampleTest extends \DrupalWebTestCase {
|
||||
|
||||
public static function getInfo() {
|
||||
return array(
|
||||
'name' => 'PSR4 example test: PSR-4 in nested subfolders.',
|
||||
'description' => 'We want to assert that this PSR-4 test case is being discovered.',
|
||||
'group' => 'SimpleTest',
|
||||
);
|
||||
}
|
||||
|
||||
function testArithmetics() {
|
||||
$this->assert(1 + 1 == 2, '1 + 1 == 2');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue