Code Duplication    Length = 10-10 lines in 2 locations

test/Source/MySqlDumpSourceTest.php 2 locations

@@ 50-59 (lines=10) @@
47
     *
48
     * @expectedException \RunOpenCode\Backup\Exception\SourceException
49
     */
50
    public function connectionError()
51
    {
52
        $settings = require_once __DIR__ .'/../Fixtures/config/mysqldump.php';
53
        $source = new MySqlDump($settings['database'], $settings['username'], $settings['password'], 'www.non-existing-domain.com', $settings['port']);
54
55
        $source->setLogger(new NullLogger());
56
        $source->setEventDispatcher($eventDispatcher = new EventDispatcher());
57
58
        $source->fetch();
59
    }
60
61
    /**
62
     * @test
@@ 66-75 (lines=10) @@
63
     *
64
     * @expectedException \RunOpenCode\Backup\Exception\SourceException
65
     */
66
    public function databaseError()
67
    {
68
        $settings = require_once __DIR__ .'/../Fixtures/config/mysqldump.php';
69
        $source = new MySqlDump('There is no way that you have database with this name.', $settings['username'], $settings['password'], $settings['host'], $settings['port']);
70
71
        $source->setLogger(new NullLogger());
72
        $source->setEventDispatcher($eventDispatcher = new EventDispatcher());
73
74
        $source->fetch();
75
    }
76
}