Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function testGetAccessToken() |
||
22 | { |
||
23 | /** |
||
24 | * Should return the unserialized token on TwitterAccount. |
||
25 | */ |
||
26 | $twitterAccount = new TwitterAccount([ |
||
27 | 'AccessToken' => serialize(['token' => 'abc', 'secret' => '123']), |
||
28 | ]); |
||
29 | |||
30 | $this->assertInternalType('array', $twitterAccount->getAccessToken()); |
||
31 | } |
||
32 | |||
52 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.