Skip to content

Commit 189c32b

Browse files
committed
The DSL with name 'TDD' has been renamed to 'PHPUnit'. The DSL with name 'BDD' has been renamed to 'DescribeIt'
1 parent 6d36d8a commit 189c32b

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

bootstrap.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
declare(strict_types=1);
33

44
require_once __DIR__.'/vendor/autoload.php';
5-
require_once __DIR__.'/src/DSL/TDD.php';
6-
require_once __DIR__.'/src/DSL/BDD.php';
5+
require_once __DIR__.'/src/DSL/PHPUnit.php';
6+
require_once __DIR__.'/src/DSL/DescribeIt.php';
77

88
define('ROOT_DIR', __DIR__);
File renamed without changes.
File renamed without changes.

src/Framework.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Framework extends Command
2525
public const VERSION = '2.0.0';
2626

2727
public const DEFAULT_OPTIONS = [
28-
'dsl' => ['TDD', 'BDD'],
28+
'dsl' => ['phpunit', 'describe-it'],
2929
'file_pattern' => '^test.*\.php$',
3030
'colors' => true,
3131
'testdox' => false,
@@ -232,10 +232,10 @@ private function includeDirectory(string $directoryPath, string $filePattern): v
232232

233233
private function loadDsl(string $dsl): void
234234
{
235-
if (0 === strcasecmp($dsl, 'TDD')) {
236-
require_once __DIR__.'/DSL/TDD.php';
237-
} elseif (0 === strcasecmp($dsl, 'BDD')) {
238-
require_once __DIR__.'/DSL/BDD.php';
235+
if (0 === strcasecmp($dsl, 'PHPUnit')) {
236+
require_once __DIR__.'/DSL/PHPUnit.php';
237+
} elseif (0 === strcasecmp($dsl, 'describe-it')) {
238+
require_once __DIR__.'/DSL/DescribeIt.php';
239239
} else {
240240
throw new PyramidalTestsException("The value '{$dsl}' is not a valid DSL.");
241241
}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pyramidal:
2-
dsl: bdd
2+
dsl: describe-it
33
testdox: true

0 commit comments

Comments
 (0)