1 | <?php |
||
19 | class SetupPyControllerTest extends \PHPUnit_Framework_TestCase |
||
20 | { |
||
21 | /** |
||
22 | * @var SetupPyController |
||
23 | */ |
||
24 | protected $object; |
||
25 | |||
26 | private $ops = [ |
||
27 | 'name' => 'test', |
||
28 | 'version' => '0.0.0', |
||
29 | 'license' => 'MIT', |
||
30 | 'url' => 'http://url.url/url', |
||
31 | 'author' => 'Some Body', |
||
32 | 'author_email' => 'some@email', |
||
33 | ]; |
||
34 | |||
35 | protected function setUp() |
||
39 | |||
40 | public function testConstructor() |
||
44 | |||
45 | public function testGetName() |
||
49 | |||
50 | public function testGetVersion() |
||
54 | |||
55 | public function testGetLicense() |
||
59 | |||
60 | public function testGetPackages() |
||
64 | |||
65 | public function testGetUrl() |
||
69 | |||
70 | public function testGetAuthor() |
||
74 | |||
75 | public function testGetAuthorEmail() |
||
79 | } |
||
80 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: