Code Duplication    Length = 7-7 lines in 2 locations

tests/Unit/StarterTest.php 2 locations

@@ 39-45 (lines=7) @@
36
     * @expectedException LogicException
37
     * @expectedExceptionMessage Url, Query and Selenium Jar Location is mandatory and Jar Location should point to a .jar file.
38
     */
39
    public function testNoQueryThrowsException()
40
    {
41
        $jarLocation = __DIR__.'/../fixtures';
42
        $this->seleniumOptions->expects($this->any())->method('getSeleniumUrl')->willReturn('not_empty');
43
        $this->seleniumOptions->expects($this->any())->method('getSeleniumJarLocation')->willReturn($jarLocation);
44
        $this->starter->start();
45
    }
46
47
    /**
48
     * @expectedException LogicException
@@ 51-57 (lines=7) @@
48
     * @expectedException LogicException
49
     * @expectedExceptionMessage Url, Query and Selenium Jar Location is mandatory and Jar Location should point to a .jar file.
50
     */
51
    public function testNoUrlThrowsException()
52
    {
53
        $jarLocation = __DIR__.'/../fixtures';
54
        $this->seleniumOptions->expects($this->any())->method('getSeleniumQuery')->willReturn('not_empty');
55
        $this->seleniumOptions->expects($this->any())->method('getSeleniumJarLocation')->willReturn($jarLocation);
56
        $this->starter->start();
57
    }
58
59
    /**
60
     * @expectedException RuntimeException