File: 0003-Delete-TestListener.php.patch

package info (click to toggle)
php-mockery 1.6.12-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,988 kB
  • sloc: php: 12,443; xml: 1,716; makefile: 204; sh: 47; python: 43
file content (56 lines) | stat: -rw-r--r-- 1,724 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
From: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
Date: Fri, 19 May 2023 17:51:39 -0500
Subject: Delete TestListener.php

Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>

Origin: upstream, https://github.com/mockery/mockery/commit/61e0338ac0fa46aa7cf4b42ac3968b1c26b90b28
---
 library/Mockery/Adapter/Phpunit/TestListener.php | 38 ------------------------
 1 file changed, 38 deletions(-)
 delete mode 100644 library/Mockery/Adapter/Phpunit/TestListener.php

diff --git a/library/Mockery/Adapter/Phpunit/TestListener.php b/library/Mockery/Adapter/Phpunit/TestListener.php
deleted file mode 100644
index 1ae8458..0000000
--- a/library/Mockery/Adapter/Phpunit/TestListener.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-
-/**
- * Mockery (https://docs.mockery.io/)
- *
- * @copyright https://github.com/mockery/mockery/blob/HEAD/COPYRIGHT.md
- * @license https://github.com/mockery/mockery/blob/HEAD/LICENSE BSD 3-Clause License
- * @link https://github.com/mockery/mockery for the canonical source repository
- */
-
-namespace Mockery\Adapter\Phpunit;
-
-use PHPUnit\Framework\Test;
-use PHPUnit\Framework\TestListener as PHPUnitTestListener;
-use PHPUnit\Framework\TestListenerDefaultImplementation;
-use PHPUnit\Framework\TestSuite;
-
-class TestListener implements PHPUnitTestListener
-{
-    use TestListenerDefaultImplementation;
-
-    private $trait;
-
-    public function __construct()
-    {
-        $this->trait = new TestListenerTrait();
-    }
-
-    public function endTest(Test $test, float $time): void
-    {
-        $this->trait->endTest($test, $time);
-    }
-
-    public function startTestSuite(TestSuite $suite): void
-    {
-        $this->trait->startTestSuite();
-    }
-}