Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
8 | public function testGetQuestions() |
||
9 | { |
||
10 | $questions = Questions::get($this->client); |
||
11 | |||
12 | self::assertArrayHasKey('surveys', $questions); |
||
13 | self::assertCount(2, $questions['surveys']); |
||
14 | self::assertArrayHasKey('structure', $questions); |
||
15 | self::assertArrayHasKey('q_1J75WdyBwVpwlJUM', $questions['structure'], "Date Question disappeared!"); |
||
16 | self::assertArrayHasKey('q_tVabQ3cUlwZTgQ10', $questions['structure'], "Checkbox Question disappeared!"); |
||
17 | self::assertArrayHasKey('q_KCyzOs7VqevWbEO0', $questions['structure'], "Name Question disappeared!"); |
||
18 | self::assertArrayHasKey('q_3RYJ4MpggyMFuU50', $questions['structure'], "Email Question disappeared!"); |
||
19 | } |
||
21 | } |
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.