Skip to content

Commit cda4176

Browse files
Delete code that is no longer used
1 parent 03c7660 commit cda4176

2 files changed

Lines changed: 45 additions & 47 deletions

File tree

src/Runner/TestResult/Collector.php

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -626,84 +626,37 @@ public function childProcessErrored(ChildProcessErrored $event): void
626626
$this->childProcessErrored = true;
627627
}
628628

629-
public function hasErroredTests(): bool
630-
{
631-
return $this->testErroredEvents !== [];
632-
}
633-
634629
public function numberOfErroredTests(): int
635630
{
636631
return count($this->testErroredEvents);
637632
}
638633

639-
public function hasFailedTests(): bool
640-
{
641-
return $this->testFailedEvents !== [];
642-
}
643-
644634
public function numberOfFailedTests(): int
645635
{
646636
return count($this->testFailedEvents);
647637
}
648638

649-
public function hasRiskyTests(): bool
650-
{
651-
return $this->testConsideredRiskyEvents !== [];
652-
}
653-
654639
public function numberOfRiskyTests(): int
655640
{
656641
return count($this->testConsideredRiskyEvents);
657642
}
658643

659-
public function hasSkippedTests(): bool
660-
{
661-
return $this->testSkippedEvents !== [];
662-
}
663-
664644
public function numberOfSkippedTests(): int
665645
{
666646
return count($this->testSkippedEvents);
667647
}
668648

669-
public function hasIncompleteTests(): bool
670-
{
671-
return $this->testMarkedIncompleteEvents !== [];
672-
}
673-
674649
public function numberOfIncompleteTests(): int
675650
{
676651
return count($this->testMarkedIncompleteEvents);
677652
}
678653

679-
public function hasDeprecations(): bool
680-
{
681-
return $this->deprecations !== [] ||
682-
$this->phpDeprecations !== [] ||
683-
$this->testTriggeredPhpunitDeprecationEvents !== [] ||
684-
$this->testRunnerTriggeredDeprecationEvents !== [];
685-
}
686-
687-
public function hasNotices(): bool
688-
{
689-
return $this->notices !== [] ||
690-
$this->phpNotices !== [];
691-
}
692-
693654
public function numberOfNotices(): int
694655
{
695656
return count($this->notices) +
696657
count($this->phpNotices);
697658
}
698659

699-
public function hasWarnings(): bool
700-
{
701-
return $this->warnings !== [] ||
702-
$this->phpWarnings !== [] ||
703-
$this->testTriggeredPhpunitWarningEvents !== [] ||
704-
$this->testRunnerTriggeredWarningEvents !== [];
705-
}
706-
707660
public function numberOfWarnings(): int
708661
{
709662
return count($this->warnings) +

src/TextUI/Configuration/Configuration.php

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,11 @@ public function doNotFailOnWarning(): bool
954954
return $this->doNotFailOnWarning;
955955
}
956956

957+
/**
958+
* @deprecated
959+
*
960+
* @codeCoverageIgnore
961+
*/
957962
public function stopOnDefect(): bool
958963
{
959964
return $this->stopOnDefect > 0;
@@ -967,6 +972,11 @@ public function stopOnDefectThreshold(): int
967972
return $this->stopOnDefect;
968973
}
969974

975+
/**
976+
* @deprecated
977+
*
978+
* @codeCoverageIgnore
979+
*/
970980
public function stopOnDeprecation(): bool
971981
{
972982
return $this->stopOnDeprecation > 0;
@@ -1000,6 +1010,11 @@ public function specificDeprecationToStopOn(): string
10001010
return $this->specificDeprecationToStopOn;
10011011
}
10021012

1013+
/**
1014+
* @deprecated
1015+
*
1016+
* @codeCoverageIgnore
1017+
*/
10031018
public function stopOnError(): bool
10041019
{
10051020
return $this->stopOnError > 0;
@@ -1013,6 +1028,11 @@ public function stopOnErrorThreshold(): int
10131028
return $this->stopOnError;
10141029
}
10151030

1031+
/**
1032+
* @deprecated
1033+
*
1034+
* @codeCoverageIgnore
1035+
*/
10161036
public function stopOnFailure(): bool
10171037
{
10181038
return $this->stopOnFailure > 0;
@@ -1026,6 +1046,11 @@ public function stopOnFailureThreshold(): int
10261046
return $this->stopOnFailure;
10271047
}
10281048

1049+
/**
1050+
* @deprecated
1051+
*
1052+
* @codeCoverageIgnore
1053+
*/
10291054
public function stopOnIncomplete(): bool
10301055
{
10311056
return $this->stopOnIncomplete > 0;
@@ -1039,6 +1064,11 @@ public function stopOnIncompleteThreshold(): int
10391064
return $this->stopOnIncomplete;
10401065
}
10411066

1067+
/**
1068+
* @deprecated
1069+
*
1070+
* @codeCoverageIgnore
1071+
*/
10421072
public function stopOnNotice(): bool
10431073
{
10441074
return $this->stopOnNotice > 0;
@@ -1052,6 +1082,11 @@ public function stopOnNoticeThreshold(): int
10521082
return $this->stopOnNotice;
10531083
}
10541084

1085+
/**
1086+
* @deprecated
1087+
*
1088+
* @codeCoverageIgnore
1089+
*/
10551090
public function stopOnRisky(): bool
10561091
{
10571092
return $this->stopOnRisky > 0;
@@ -1065,6 +1100,11 @@ public function stopOnRiskyThreshold(): int
10651100
return $this->stopOnRisky;
10661101
}
10671102

1103+
/**
1104+
* @deprecated
1105+
*
1106+
* @codeCoverageIgnore
1107+
*/
10681108
public function stopOnSkipped(): bool
10691109
{
10701110
return $this->stopOnSkipped > 0;
@@ -1078,6 +1118,11 @@ public function stopOnSkippedThreshold(): int
10781118
return $this->stopOnSkipped;
10791119
}
10801120

1121+
/**
1122+
* @deprecated
1123+
*
1124+
* @codeCoverageIgnore
1125+
*/
10811126
public function stopOnWarning(): bool
10821127
{
10831128
return $this->stopOnWarning > 0;

0 commit comments

Comments
 (0)