-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only consider test outcome (errored, failed, incomplete, skipped, or …
…passed) for TestDox format and display details about test issues, when requested, using the default result printer. Closes #5488
- Loading branch information
1 parent
6fa4160
commit 23281e2
Showing
23 changed files
with
382 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/Logging/TestDox/TestResult/Subscriber/TestTriggeredDeprecationSubscriber.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php declare(strict_types=1); | ||
/* | ||
* This file is part of PHPUnit. | ||
* | ||
* (c) Sebastian Bergmann <sebastian@phpunit.de> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
namespace PHPUnit\Logging\TestDox; | ||
|
||
use PHPUnit\Event\Test\DeprecationTriggered; | ||
use PHPUnit\Event\Test\DeprecationTriggeredSubscriber; | ||
|
||
/** | ||
* @internal This class is not covered by the backward compatibility promise for PHPUnit | ||
*/ | ||
final class TestTriggeredDeprecationSubscriber extends Subscriber implements DeprecationTriggeredSubscriber | ||
{ | ||
public function notify(DeprecationTriggered $event): void | ||
{ | ||
$this->collector()->testTriggeredDeprecation($event); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/Logging/TestDox/TestResult/Subscriber/TestTriggeredNoticeSubscriber.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php declare(strict_types=1); | ||
/* | ||
* This file is part of PHPUnit. | ||
* | ||
* (c) Sebastian Bergmann <sebastian@phpunit.de> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
namespace PHPUnit\Logging\TestDox; | ||
|
||
use PHPUnit\Event\Test\NoticeTriggered; | ||
use PHPUnit\Event\Test\NoticeTriggeredSubscriber; | ||
|
||
/** | ||
* @internal This class is not covered by the backward compatibility promise for PHPUnit | ||
*/ | ||
final class TestTriggeredNoticeSubscriber extends Subscriber implements NoticeTriggeredSubscriber | ||
{ | ||
public function notify(NoticeTriggered $event): void | ||
{ | ||
$this->collector()->testTriggeredNotice($event); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpDeprecationSubscriber.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php declare(strict_types=1); | ||
/* | ||
* This file is part of PHPUnit. | ||
* | ||
* (c) Sebastian Bergmann <sebastian@phpunit.de> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
namespace PHPUnit\Logging\TestDox; | ||
|
||
use PHPUnit\Event\Test\PhpDeprecationTriggered; | ||
use PHPUnit\Event\Test\PhpDeprecationTriggeredSubscriber; | ||
|
||
/** | ||
* @internal This class is not covered by the backward compatibility promise for PHPUnit | ||
*/ | ||
final class TestTriggeredPhpDeprecationSubscriber extends Subscriber implements PhpDeprecationTriggeredSubscriber | ||
{ | ||
public function notify(PhpDeprecationTriggered $event): void | ||
{ | ||
$this->collector()->testTriggeredPhpDeprecation($event); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpNoticeSubscriber.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php declare(strict_types=1); | ||
/* | ||
* This file is part of PHPUnit. | ||
* | ||
* (c) Sebastian Bergmann <sebastian@phpunit.de> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
namespace PHPUnit\Logging\TestDox; | ||
|
||
use PHPUnit\Event\Test\PhpNoticeTriggered; | ||
use PHPUnit\Event\Test\PhpNoticeTriggeredSubscriber; | ||
|
||
/** | ||
* @internal This class is not covered by the backward compatibility promise for PHPUnit | ||
*/ | ||
final class TestTriggeredPhpNoticeSubscriber extends Subscriber implements PhpNoticeTriggeredSubscriber | ||
{ | ||
public function notify(PhpNoticeTriggered $event): void | ||
{ | ||
$this->collector()->testTriggeredPhpNotice($event); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpWarningSubscriber.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php declare(strict_types=1); | ||
/* | ||
* This file is part of PHPUnit. | ||
* | ||
* (c) Sebastian Bergmann <sebastian@phpunit.de> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
namespace PHPUnit\Logging\TestDox; | ||
|
||
use PHPUnit\Event\Test\PhpWarningTriggered; | ||
use PHPUnit\Event\Test\PhpWarningTriggeredSubscriber; | ||
|
||
/** | ||
* @internal This class is not covered by the backward compatibility promise for PHPUnit | ||
*/ | ||
final class TestTriggeredPhpWarningSubscriber extends Subscriber implements PhpWarningTriggeredSubscriber | ||
{ | ||
public function notify(PhpWarningTriggered $event): void | ||
{ | ||
$this->collector()->testTriggeredPhpWarning($event); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpunitDeprecationSubscriber.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php declare(strict_types=1); | ||
/* | ||
* This file is part of PHPUnit. | ||
* | ||
* (c) Sebastian Bergmann <sebastian@phpunit.de> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
namespace PHPUnit\Logging\TestDox; | ||
|
||
use PHPUnit\Event\Test\PhpunitDeprecationTriggered; | ||
use PHPUnit\Event\Test\PhpunitDeprecationTriggeredSubscriber; | ||
|
||
/** | ||
* @internal This class is not covered by the backward compatibility promise for PHPUnit | ||
*/ | ||
final class TestTriggeredPhpunitDeprecationSubscriber extends Subscriber implements PhpunitDeprecationTriggeredSubscriber | ||
{ | ||
public function notify(PhpunitDeprecationTriggered $event): void | ||
{ | ||
$this->collector()->testTriggeredPhpunitDeprecation($event); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpunitErrorSubscriber.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php declare(strict_types=1); | ||
/* | ||
* This file is part of PHPUnit. | ||
* | ||
* (c) Sebastian Bergmann <sebastian@phpunit.de> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
namespace PHPUnit\Logging\TestDox; | ||
|
||
use PHPUnit\Event\Test\PhpunitErrorTriggered; | ||
use PHPUnit\Event\Test\PhpunitErrorTriggeredSubscriber; | ||
|
||
/** | ||
* @internal This class is not covered by the backward compatibility promise for PHPUnit | ||
*/ | ||
final class TestTriggeredPhpunitErrorSubscriber extends Subscriber implements PhpunitErrorTriggeredSubscriber | ||
{ | ||
public function notify(PhpunitErrorTriggered $event): void | ||
{ | ||
$this->collector()->testTriggeredPhpunitError($event); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpunitWarningSubscriber.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php declare(strict_types=1); | ||
/* | ||
* This file is part of PHPUnit. | ||
* | ||
* (c) Sebastian Bergmann <sebastian@phpunit.de> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
namespace PHPUnit\Logging\TestDox; | ||
|
||
use PHPUnit\Event\Test\PhpunitWarningTriggered; | ||
use PHPUnit\Event\Test\PhpunitWarningTriggeredSubscriber; | ||
|
||
/** | ||
* @internal This class is not covered by the backward compatibility promise for PHPUnit | ||
*/ | ||
final class TestTriggeredPhpunitWarningSubscriber extends Subscriber implements PhpunitWarningTriggeredSubscriber | ||
{ | ||
public function notify(PhpunitWarningTriggered $event): void | ||
{ | ||
$this->collector()->testTriggeredPhpunitWarning($event); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/Logging/TestDox/TestResult/Subscriber/TestTriggeredWarningSubscriber.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php declare(strict_types=1); | ||
/* | ||
* This file is part of PHPUnit. | ||
* | ||
* (c) Sebastian Bergmann <sebastian@phpunit.de> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
namespace PHPUnit\Logging\TestDox; | ||
|
||
use PHPUnit\Event\Test\WarningTriggered; | ||
use PHPUnit\Event\Test\WarningTriggeredSubscriber; | ||
|
||
/** | ||
* @internal This class is not covered by the backward compatibility promise for PHPUnit | ||
*/ | ||
final class TestTriggeredWarningSubscriber extends Subscriber implements WarningTriggeredSubscriber | ||
{ | ||
public function notify(WarningTriggered $event): void | ||
{ | ||
$this->collector()->testTriggeredWarning($event); | ||
} | ||
} |
Oops, something went wrong.