1 | <?php |
||
13 | class RoleTest extends \PHPUnit_Framework_TestCase |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * @var Role |
||
18 | */ |
||
19 | protected $role; |
||
20 | |||
21 | /** |
||
22 | * SetUp |
||
23 | */ |
||
24 | public function setUp() |
||
28 | |||
29 | /** |
||
30 | * Test the setter/getters |
||
31 | * |
||
32 | * @param string $name |
||
33 | * @param mixed $value |
||
34 | * |
||
35 | * @dataProvider setterGetterProvider |
||
36 | */ |
||
37 | public function testSetterGetter($name, $value) |
||
46 | |||
47 | /** |
||
48 | * @return array |
||
49 | */ |
||
50 | public function setterGetterProvider() |
||
56 | |||
57 | public function testHasChildrenReturnsFalseWhenNoChildren() |
||
61 | |||
62 | public function testHasChildrenReturnsTrueWhenHasChildren() |
||
67 | |||
68 | public function testAddPermissionToRole() |
||
81 | |||
82 | public function testHasPermission() |
||
88 | } |
||
89 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..