Code Duplication    Length = 13-13 lines in 3 locations

tests/Builder/JobWithBrazilianLocationsBuilderTest.php 3 locations

@@ 18-30 (lines=13) @@
15
        JobWithBrazilianLocationsBuilder::fromApi(new \stdClass, new Job);
16
    }
17
18
    public function testLocationIsBrasil()
19
    {
20
        $apiJob = new \stdClass;
21
        $apiJob->locations = 'Brasil';
22
23
        $job = new Job;
24
        $job->setCountry('Brazil');
25
        $job = JobWithBrazilianLocationsBuilder::fromApi($apiJob, $job);
26
27
        $this->assertNull($job->getState());
28
        $this->assertNull($job->getCity());
29
        $this->assertEquals('Brazil', $job->getCountry());
30
    }
31
32
    public function testLocationIsAcre()
33
    {
@@ 32-44 (lines=13) @@
29
        $this->assertEquals('Brazil', $job->getCountry());
30
    }
31
32
    public function testLocationIsAcre()
33
    {
34
        $apiJob = new \stdClass;
35
        $apiJob->locations = 'Acre';
36
37
        $job = new Job;
38
        $job->setCountry('Brazil');
39
        $job = JobWithBrazilianLocationsBuilder::fromApi($apiJob, $job);
40
41
        $this->assertEquals('AC', $job->getState());
42
        $this->assertNull($job->getCity());
43
        $this->assertEquals('Brazil', $job->getCountry());
44
    }
45
46
    public function testLocationIsAlagoas()
47
    {
@@ 46-58 (lines=13) @@
43
        $this->assertEquals('Brazil', $job->getCountry());
44
    }
45
46
    public function testLocationIsAlagoas()
47
    {
48
        $apiJob = new \stdClass;
49
        $apiJob->locations = 'Alagoas';
50
51
        $job = new Job;
52
        $job->setCountry('Brazil');
53
        $job = JobWithBrazilianLocationsBuilder::fromApi($apiJob, $job);
54
55
        $this->assertEquals('AL', $job->getState());
56
        $this->assertNull($job->getCity());
57
        $this->assertEquals('Brazil', $job->getCountry());
58
    }
59
60
    public function testLocationIsAmapa()
61
    {