Code Duplication    Length = 12-12 lines in 2 locations

tests/unit/PhpQuickProfilerTest.php 2 locations

@@ 177-188 (lines=12) @@
174
    /**
175
     * @expectedException Exception
176
     */
177
    public function testExplainQueryBadParametersException()
178
    {
179
        $query = 'SELECT * FROM `testing` WHERE `title` = :title';
180
        $invalidParams = array('id' => 1);
181
        $profiler = new PhpQuickProfiler();
182
        $reflectedMethod = $this->getAccessibleMethod($profiler, 'explainQuery');
183
184
        $reflectedMethod->invokeArgs(
185
            $profiler,
186
            array(self::$dbConnection, $query, $invalidParams)
187
        );
188
    }
189
190
    /**
191
     * @dataProvider dataConnectionDrivers
@@ 212-223 (lines=12) @@
209
    /**
210
     * @expectedException Exception
211
     */
212
    public function testGetExplainQueryUnsupportedDriver()
213
    {
214
        $query = 'SELECT * FROM `testing`';
215
        $unsupportedDriver = 'zz';
216
        $profiler = new PhpQuickProfiler();
217
        $reflectedMethod = $this->getAccessibleMethod($profiler, 'getExplainQuery');
218
219
        $reflectedMethod->invokeArgs(
220
            $profiler,
221
            array($query, $unsupportedDriver)
222
        );
223
    }
224
225
    public function testGatherSpeedData()
226
    {