Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
5 | public function testSetAccessToken() |
||
6 | { |
||
7 | /** |
||
8 | * Should serialize the token and set it on the TwitterAccount. |
||
9 | */ |
||
10 | $token = ['token' => 'abc', 'secret' => '123']; |
||
11 | |||
12 | $twitterAccount = new TwitterAccount(); |
||
13 | |||
14 | $this->assertEquals(null, $twitterAccount->getField('AccessToken')); |
||
15 | |||
16 | $twitterAccount->setAccessToken($token); |
||
17 | |||
18 | $this->assertInternalType('string', $twitterAccount->getField('AccessToken')); |
||
19 | } |
||
20 | |||
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.