Code Duplication    Length = 9-9 lines in 2 locations

tests/Builder/JobWithBrazilianLocationsBuilderTest.php 2 locations

@@ 45-53 (lines=9) @@
42
        $this->assertEquals('Brazil', $this->job->getCountry());
43
    }
44
45
    public function testLocationIsStateCityComposition()
46
    {
47
        $this->apiJob->locations = 'São Paulo - SP';
48
        $this->job = JobWithBrazilianLocationsBuilder::fromApi($this->apiJob, $this->job);
49
50
        $this->assertEquals('SP', $this->job->getState());
51
        $this->assertEquals('São Paulo', $this->job->getCity());
52
        $this->assertEquals('Brazil', $this->job->getCountry());
53
    }
54
55
    /**
56
     * @dataProvider statesDataProvider
@@ 35-43 (lines=9) @@
32
        JobWithBrazilianLocationsBuilder::fromApi(new \stdClass, new Job);
33
    }
34
35
    public function testLocationIsBrasil()
36
    {
37
        $this->apiJob->locations = 'Brasil';
38
        $this->job = JobWithBrazilianLocationsBuilder::fromApi($this->apiJob, $this->job);
39
40
        $this->assertEmpty($this->job->getState());
41
        $this->assertEmpty($this->job->getCity());
42
        $this->assertEquals('Brazil', $this->job->getCountry());
43
    }
44
45
    public function testLocationIsStateCityComposition()
46
    {