Issues (17)

tests/unit/Polyfill.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace hiqdev\composer\config\tests\unit;
4
5
if (version_compare(PHP_VERSION, '5.6', '>=')) {
6
    trait Polyfill
7
    {
8
    }
9
} else {
10
    trait Polyfill
11
    {
12
        protected function createMock($originalClassName)
13
        {
14
            return $this->getMockBuilder($originalClassName)
0 ignored issues
show
It seems like getMockBuilder() must be provided by classes using this trait. How about adding it as abstract method to this trait? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

14
            return $this->/** @scrutinizer ignore-call */ getMockBuilder($originalClassName)
Loading history...
15
                ->disableOriginalConstructor()
16
                ->disableOriginalClone()
17
                ->disableArgumentCloning()
18
                ->getMock();
19
        }
20
    }
21
}
22