Failed Conditions
Push — master ( db6d0c...694d4f )
by Alexander
27s queued 24s
created

AbstractTestSuite::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
/**
3
 * This file is part of the phpunit-mink library.
4
 * For the full copyright and license information, please view
5
 * the LICENSE file that was distributed with this source code.
6
 *
7
 * @copyright Alexander Obuhovich <[email protected]>
8
 * @link      https://github.com/aik099/phpunit-mink
9
 */
10
11
namespace ConsoleHelpers\PHPUnitCompat;
12
13
14
use PHPUnit\Framework\TestSuite;
0 ignored issues
show
Bug introduced by
The type PHPUnit\Framework\TestSuite was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
15
16
if ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '5.0.0', '<') ) {
17
	/**
18
	 * Implementation for PHPUnit 4
19
	 */
20
	abstract class AbstractTestSuite extends TestSuite
21
	{
22
23
		use TAbstractTestSuiteBody;
24
25
		/**
26
		 * @inheritDoc
27
		 */
28
		public function run(\PHPUnit_Framework_TestResult $result = null)
0 ignored issues
show
Bug introduced by
The type PHPUnit_Framework_TestResult was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
29
		{
30
			return $this->runCompat($result);
31
		}
32
33
		/**
34
		 * @inheritDoc
35
		 */
36
		protected function tearDown()
37
		{
38
			$this->tearDownCompat();
39
		}
40
41
	}
42
}
43
elseif ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '6.0.0', '<') ) {
44
	/**
45
	 * Implementation for PHPUnit 5
46
	 */
47
	abstract class AbstractTestSuite extends TestSuite
48
	{
49
50
		use TAbstractTestSuiteBody;
51
52
		/**
53
		 * @inheritDoc
54
		 */
55
		public function run(\PHPUnit_Framework_TestResult $result = null)
56
		{
57
			return $this->runCompat($result);
58
		}
59
60
		/**
61
		 * @inheritDoc
62
		 */
63
		protected function tearDown()
64
		{
65
			$this->tearDownCompat();
66
		}
67
68
	}
69
}
70