Code Duplication    Length = 12-12 lines in 2 locations

tests/unit/PhpQuickProfilerTest.php 2 locations

@@ 168-179 (lines=12) @@
165
    /**
166
     * @expectedException Exception
167
     */
168
    public function testExplainQueryBadParametersException()
169
    {
170
        $query = 'SELECT * FROM `testing` WHERE `title` = :title';
171
        $invalidParams = array('id' => 1);
172
        $profiler = new PhpQuickProfiler();
173
        $reflectedMethod = $this->getAccessibleMethod($profiler, 'explainQuery');
174
175
        $reflectedMethod->invokeArgs(
176
            $profiler,
177
            array(self::$dbConnection, $query, $invalidParams)
178
        );
179
    }
180
181
    /**
182
     * @dataProvider dataConnectionDrivers
@@ 203-214 (lines=12) @@
200
    /**
201
     * @expectedException Exception
202
     */
203
    public function testGetExplainQueryUnsupportedDriver()
204
    {
205
        $query = 'SELECT * FROM `testing`';
206
        $unsupportedDriver = 'zz';
207
        $profiler = new PhpQuickProfiler();
208
        $reflectedMethod = $this->getAccessibleMethod($profiler, 'getExplainQuery');
209
210
        $reflectedMethod->invokeArgs(
211
            $profiler,
212
            array($query, $unsupportedDriver)
213
        );
214
    }
215
216
    public function testGatherSpeedData()
217
    {