From 4083e6e26e8ab71a3882954790a0e09f17309ef7 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Sun, 8 Jan 2023 23:02:01 +0000 Subject: [PATCH] change: removes junit support --- src/Logging/JUnit.php | 23 ----------------------- tests/.snapshots/success.txt | 5 +---- tests/Visual/JUnit.php | 29 ----------------------------- 3 files changed, 1 insertion(+), 56 deletions(-) delete mode 100644 src/Logging/JUnit.php delete mode 100644 tests/Visual/JUnit.php diff --git a/src/Logging/JUnit.php b/src/Logging/JUnit.php deleted file mode 100644 index 22c05afd..00000000 --- a/src/Logging/JUnit.php +++ /dev/null @@ -1,23 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Pest\Logging; - -use Pest\Support\Printer; - -/** - * @internal This class is not covered by the backward compatibility promise for PHPUnit - */ -final class JUnit extends Printer -{ - // @todo -} diff --git a/tests/.snapshots/success.txt b/tests/.snapshots/success.txt index fc45145f..789c001e 100644 --- a/tests/.snapshots/success.txt +++ b/tests/.snapshots/success.txt @@ -882,9 +882,6 @@ PASS Tests\Visual\Help ✓ visual snapshot of help command output - WARN Tests\Visual\JUnit - - it is can successfully call all public methods → Not supported yet. - PASS Tests\Visual\SingleTestOrDirectory ✓ allows to run a single test ✓ allows to run a directory @@ -899,4 +896,4 @@ PASS Tests\Visual\Version ✓ visual snapshot of help command output - Tests: 4 incomplete, 2 todos, 18 skipped, 624 passed (1511 assertions) \ No newline at end of file + Tests: 4 incomplete, 2 todos, 17 skipped, 624 passed (1511 assertions) \ No newline at end of file diff --git a/tests/Visual/JUnit.php b/tests/Visual/JUnit.php deleted file mode 100644 index 41481b4d..00000000 --- a/tests/Visual/JUnit.php +++ /dev/null @@ -1,29 +0,0 @@ -startTestSuite(new TestSuite()); - $junit->startTest($this); - $junit->addError($this, new Exception(), 0); - $junit->addFailure($this, new AssertionFailedError(), 0); - $junit->addWarning($this, new Warning(), 0); - $junit->addIncompleteTest($this, new Exception(), 0); - $junit->addRiskyTest($this, new Exception(), 0); - $junit->addSkippedTest($this, new Exception(), 0); - $junit->endTest($this, 0); - $junit->endTestSuite(new TestSuite()); - $this->expectNotToPerformAssertions(); -})->skip('Not supported yet.'); - -afterEach(function () { - unlink(__DIR__.'/junit.html'); -});