| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function testIndex() |
||
| 19 | { |
||
| 20 | $client = static::createClient(); |
||
| 21 | |||
| 22 | $crawler = $client->request('GET', '/'); |
||
| 23 | |||
| 24 | $this->assertSame( |
||
| 25 | 200, // or Symfony\Component\HttpFoundation\Response::HTTP_OK, |
||
| 26 | $client->getResponse()->getStatusCode() |
||
| 27 | ); |
||
| 28 | |||
| 29 | $this->assertContains('Hello Component!', $client->getResponse()->getContent()); |
||
| 30 | } |
||
| 31 | } |
||
| 32 |
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.