Code Duplication    Length = 12-12 lines in 2 locations

tests/Manager/ContainerManagerTest.php 2 locations

@@ 96-107 (lines=12) @@
93
        }
94
    }
95
96
    public function testStart()
97
    {
98
        $container = new Container(['Image' => 'ubuntu:precise', 'Cmd' => ['/bin/true']]);
99
100
        $manager = $this->getManager();
101
        $manager->create($container);
102
        $manager->start($container);
103
104
        $runtimeInformations = $container->getRuntimeInformations();
105
106
        $this->assertEquals(0, $runtimeInformations['State']['ExitCode']);
107
    }
108
109
    public function testRunDefault()
110
    {
@@ 253-264 (lines=12) @@
250
     * Not sure how to reliably test that we actually waited for the container
251
     * but this should at least ensure no exception is thrown
252
     */
253
    public function testWait()
254
    {
255
        $container = new Container(['Image' => 'ubuntu:precise', 'Cmd' => ['/bin/sleep', '1']]);
256
257
        $manager = $this->getManager();
258
        $manager->run($container);
259
        $manager->wait($container);
260
261
        $runtimeInformations = $container->getRuntimeInformations();
262
263
        $this->assertEquals(0, $runtimeInformations['State']['ExitCode']);
264
    }
265
266
    /**
267
     * @expectedException GuzzleHttp\Exception\RequestException