Code Duplication    Length = 7-10 lines in 2 locations

integTests/CurrentWeatherTest.php 1 location

@@ 30-39 (lines=10) @@
27
     */
28
    protected $owm;
29
30
    protected function setUp()
31
    {
32
        // Load the app configuration
33
        $ini = parse_ini_file(__DIR__ . '/ApiKey.ini');
34
        $apiKey = $ini['api_key'];
35
36
        $this->owm = new OpenWeatherMap();
37
        $this->owm->setApiKey($apiKey);
38
    }
39
40
    public function testByCity()
41
    {
42
        // Default units (imperial) and language (English)

integTests/ForecastDailyTest.php 1 location

@@ 29-35 (lines=7) @@
26
     */
27
    protected $owm;
28
29
    protected function setUp()
30
    {
31
        $ini = parse_ini_file(__DIR__ . '/ApiKey.ini');
32
        $apiKey = $ini['api_key'];
33
34
        $this->owm = new OpenWeatherMap($apiKey);
35
    }
36
37
    public function testTemperatureMetric()
38
    {