Code Duplication    Length = 8-8 lines in 2 locations

src/DockerCompose/Tests/Manager/ComposeManagerTest.php 2 locations

@@ 75-82 (lines=8) @@
72
    /**
73
     * Test start with project, networking and network driver option
74
     */
75
    public function testStartWithprojectAndNetworkingWithDriverOption()
76
    {
77
        $composeFiles = new ComposeFileCollection(['docker-compose.test.yml']);
78
        $composeFiles->setProjectName('unittest')->setIsNetworking(true)->setNetworkDriver('overlay');
79
80
        $this->manager->method('execute')->with('docker-compose -f docker-compose.test.yml --x-networking --x-network-driver overlay --project-name unittest up -d')->willReturn(array('output' => 'ok', 'code' => 0));
81
        $this->assertEquals($this->manager->start($composeFiles), 'ok');
82
    }
83
84
    /**
85
     * Test start with ComposeFileNotFoundException
@@ 325-332 (lines=8) @@
322
    /**
323
     * Test run with project, networking and network driver option
324
     */
325
    public function testRuntWithprojectAndNetworkingWithDriverOption()
326
    {
327
        $composeFiles = new ComposeFileCollection(['docker-compose.test.yml']);
328
        $composeFiles->setProjectName('unittest')->setIsNetworking(true)->setNetworkDriver('overlay');
329
330
        $this->manager->method('execute')->with('docker-compose -f docker-compose.test.yml --x-networking --x-network-driver overlay --project-name unittest run --rm test mycommand')->willReturn(array('output' => 'ok', 'code' => 0));
331
        $this->assertEquals($this->manager->run('test', 'mycommand', $composeFiles), 'ok');
332
    }
333
334
    /**
335
     * Test simple build without error