Code Duplication    Length = 13-17 lines in 2 locations

tests/Manager/ContainerManagerTest.php 2 locations

@@ 269-281 (lines=13) @@
266
    /**
267
     * @expectedException GuzzleHttp\Exception\RequestException
268
     */
269
    public function testWaitWithTimeout()
270
    {
271
        if (getenv('DOCKER_TLS_VERIFY')) {
272
            $this->markTestSkipped('This test failed when using ssl due to this bug : https://bugs.php.net/bug.php?id=41631');
273
        }
274
275
        $container = new Container(['Image' => 'ubuntu:precise', 'Cmd' => ['/bin/sleep', '2']]);
276
277
        $manager = $this->getManager();
278
        $manager->create($container);
279
        $manager->start($container);
280
        $manager->wait($container, 1);
281
    }
282
283
    public function testTimeoutExceptionHasRequest()
284
    {
@@ 283-299 (lines=17) @@
280
        $manager->wait($container, 1);
281
    }
282
283
    public function testTimeoutExceptionHasRequest()
284
    {
285
        if (getenv('DOCKER_TLS_VERIFY')) {
286
            $this->markTestSkipped('This test failed when using ssl due to this bug : https://bugs.php.net/bug.php?id=41631');
287
        }
288
289
        $container = new Container(['Image' => 'ubuntu:precise', 'Cmd' => ['/bin/sleep', '2']]);
290
291
        $manager = $this->getManager();
292
        $manager->run($container);
293
294
        try {
295
            $manager->wait($container, 1);
296
        } catch (RequestException $e) {
297
            $this->assertInstanceOf('Docker\\Http\\Request', $e->getRequest());
298
        }
299
    }
300
301
    public function testExposeFixedPort()
302
    {