Skip to content

Commit 6aa9183

Browse files
Deprecate BDD functionality.
1 parent 86ac86a commit 6aa9183

File tree

5 files changed

+22
-12
lines changed

5 files changed

+22
-12
lines changed

PHPUnit/TextUI/Command.php

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,16 +436,34 @@ protected function handleArguments(array $argv)
436436
break;
437437

438438
case '--story': {
439+
$this->showMessage(
440+
'The --story functionality is deprecated and ' .
441+
'will be removed in the future.',
442+
FALSE
443+
);
444+
439445
$this->arguments['printer'] = new PHPUnit_Extensions_Story_ResultPrinter_Text;
440446
}
441447
break;
442448

443449
case '--story-html': {
450+
$this->showMessage(
451+
'The --story-html functionality is deprecated and ' .
452+
'will be removed in the future.',
453+
FALSE
454+
);
455+
444456
$this->arguments['storyHTMLFile'] = $option[1];
445457
}
446458
break;
447459

448460
case '--story-text': {
461+
$this->showMessage(
462+
'The --story-text functionality is deprecated and ' .
463+
'will be removed in the future.',
464+
FALSE
465+
);
466+
449467
$this->arguments['storyTextFile'] = $option[1];
450468
}
451469
break;
@@ -789,9 +807,6 @@ protected function showHelp()
789807
--coverage-html <dir> Generate code coverage report in HTML format.
790808
--coverage-clover <file> Write code coverage data in Clover XML format.
791809
792-
--story-html <file> Write Story/BDD results in HTML format to file.
793-
--story-text <file> Write Story/BDD results in Text format to file.
794-
795810
--testdox-html <file> Write agile documentation in HTML format to file.
796811
--testdox-text <file> Write agile documentation in Text format to file.
797812
@@ -803,7 +818,6 @@ protected function showHelp()
803818
--loader <loader> TestSuiteLoader implementation to use.
804819
--repeat <times> Runs the test(s) repeatedly.
805820
806-
--story Report test execution progress in Story/BDD format.
807821
--tap Report test execution progress in TAP format.
808822
--testdox Report test execution progress in TestDox format.
809823

Tests/TextUI/help.phpt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ Usage: phpunit [switches] UnitTest [UnitTest.php]
2121
--coverage-html <dir> Generate code coverage report in HTML format.
2222
--coverage-clover <file> Write code coverage data in Clover XML format.
2323

24-
--story-html <file> Write Story/BDD results in HTML format to file.
25-
--story-text <file> Write Story/BDD results in Text format to file.
26-
2724
--testdox-html <file> Write agile documentation in HTML format to file.
2825
--testdox-text <file> Write agile documentation in Text format to file.
2926

@@ -35,7 +32,6 @@ Usage: phpunit [switches] UnitTest [UnitTest.php]
3532
--loader <loader> TestSuiteLoader implementation to use.
3633
--repeat <times> Runs the test(s) repeatedly.
3734

38-
--story Report test execution progress in Story/BDD format.
3935
--tap Report test execution progress in TAP format.
4036
--testdox Report test execution progress in TestDox format.
4137

Tests/TextUI/help2.phpt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ Usage: phpunit [switches] UnitTest [UnitTest.php]
2222
--coverage-html <dir> Generate code coverage report in HTML format.
2323
--coverage-clover <file> Write code coverage data in Clover XML format.
2424

25-
--story-html <file> Write Story/BDD results in HTML format to file.
26-
--story-text <file> Write Story/BDD results in Text format to file.
27-
2825
--testdox-html <file> Write agile documentation in HTML format to file.
2926
--testdox-text <file> Write agile documentation in Text format to file.
3027

@@ -36,7 +33,6 @@ Usage: phpunit [switches] UnitTest [UnitTest.php]
3633
--loader <loader> TestSuiteLoader implementation to use.
3734
--repeat <times> Runs the test(s) repeatedly.
3835

39-
--story Report test execution progress in Story/BDD format.
4036
--tap Report test execution progress in TAP format.
4137
--testdox Report test execution progress in TestDox format.
4238

Tests/TextUI/story-isolation.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ PHPUnit_TextUI_Command::main();
1414
--EXPECTF--
1515
PHPUnit %s by Sebastian Bergmann.
1616

17+
The --story functionality is deprecated and will be removed in the future.
18+
1719
The story result printer cannot be used in process isolation.

Tests/TextUI/story.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ PHPUnit_TextUI_Command::main();
1313
--EXPECTF--
1414
PHPUnit %s by Sebastian Bergmann.
1515

16+
The --story functionality is deprecated and will be removed in the future.
17+
1618
BowlingGameSpec
1719
[x] Score for gutter game is 0
1820

0 commit comments

Comments
 (0)