NotFoundTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 19
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A not_found_created() 0 13 1
1
<?php
2
3
namespace Zenstruck\RedirectBundle\Tests\Functional;
4
5
/**
6
 * @author Kevin Bond <[email protected]>
7
 */
8
class NotFoundTest extends FunctionalTest
9
{
10
    /**
11
     * @test
12
     */
13
    public function not_found_created()
14
    {
15
        $this->assertCount(0, $this->getNotFounds());
16
17
        $this->client->request('GET', '/not-found?foo=bar');
18
19
        $notFounds = $this->getNotFounds();
20
21
        $this->assertCount(1, $notFounds);
22
        $this->assertSame('/not-found', $notFounds[0]->getPath());
23
        $this->assertSame('http://localhost/not-found?foo=bar', $notFounds[0]->getFullUrl());
24
        $this->assertNull($notFounds[0]->getReferer());
25
    }
26
}
27