1 | <?php |
||
13 | final class NetteTokenAdapterTest extends TestCase |
||
14 | { |
||
15 | /** |
||
16 | * @var NetteTokenAdapter |
||
17 | */ |
||
18 | private $netteTokenAdapter; |
||
19 | |||
20 | protected function setUp() |
||
37 | |||
38 | public function testSetGetUser() |
||
44 | |||
45 | public function testGetRoles() |
||
49 | |||
50 | public function testGetCredentials() |
||
54 | |||
55 | public function testIsAuthenticated() |
||
60 | |||
61 | public function testGetAttributes() |
||
65 | |||
66 | /** |
||
67 | * @expectedException \Symplify\SymfonySecurity\Exception\NotImplementedException |
||
68 | */ |
||
69 | public function testToString() |
||
73 | |||
74 | /** |
||
75 | * @expectedException \Symplify\SymfonySecurity\Exception\NotImplementedException |
||
76 | */ |
||
77 | public function testSerialize() |
||
81 | |||
82 | /** |
||
83 | * @expectedException \Symplify\SymfonySecurity\Exception\NotImplementedException |
||
84 | */ |
||
85 | public function testUnserialize() |
||
89 | |||
90 | public function testGetUsername() |
||
94 | |||
95 | /** |
||
96 | * @expectedException \Symplify\SymfonySecurity\Exception\NotImplementedException |
||
97 | */ |
||
98 | public function testEraseCredentials() |
||
102 | |||
103 | /** |
||
104 | * @expectedException \Symplify\SymfonySecurity\Exception\NotImplementedException |
||
105 | */ |
||
106 | public function testSetAttributes() |
||
110 | |||
111 | public function testHasAttribute() |
||
115 | |||
116 | public function testGetAttribute() |
||
120 | |||
121 | /** |
||
122 | * @expectedException \Symplify\SymfonySecurity\Exception\NotImplementedException |
||
123 | */ |
||
124 | public function testSetAttribute() |
||
128 | } |
||
129 |
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: