1 | <?php |
||
17 | class GraphFormatterTest extends \PHPUnit_Framework_TestCase { |
||
18 | |||
19 | /* |
||
20 | * @see https://www.semantic-mediawiki.org/wiki/Help:Graph_format |
||
21 | */ |
||
22 | private $options = [ |
||
23 | 'graphName' => "Unit Test", |
||
24 | 'graphSize' => "100", |
||
25 | 'nodeShape' => "rect", |
||
26 | 'nodeLabel' => "displaytitle", |
||
27 | 'rankDir' => "TB", |
||
28 | 'wordWrapLimit' => "20", |
||
29 | 'parentRelation' => "parent", |
||
30 | 'enableGraphLink' => "yes", |
||
31 | 'showGraphLabel' => "yes", |
||
32 | 'showGraphColor' => "yes", |
||
33 | 'showGraphLegend' => "yes", |
||
34 | ]; |
||
35 | |||
36 | private $graphFormatter; |
||
37 | |||
38 | private $nodes = []; |
||
39 | |||
40 | protected function setUp() { |
||
61 | |||
62 | public function testCanConstruct() { |
||
65 | |||
66 | public function testGetWordWrappedText() { |
||
72 | |||
73 | public function testGetGraphLegend() { |
||
79 | } |
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: