Code Duplication    Length = 18-19 lines in 2 locations

tests/performance/GigyaTest.php 2 locations

@@ 147-165 (lines=19) @@
144
        $this->printBenchmark(__METHOD__, $num);
145
    }
146
147
    public function testDoubleChildCall()
148
    {
149
        $this->createBasicHandler();
150
        $this->startBenchmark();
151
152
        $num = 1000;
153
        for ($i = 0; $i < $num; $i++) {
154
            $this->gigya->accounts()->tfa()->finalizeTFA(['uid' => $i]);
155
        }
156
157
        $this->printBenchmark(__METHOD__, $num);
158
159
        list($duration, $memory) = $this->endBenchmark();
160
        static::assertLessThan(
161
            2,
162
            $duration * 1000 / $num,
163
            'An individual request should take less than 2ms of prep and response validation'
164
        );
165
    }
166
167
    public function testUidValidationResponse()
168
    {
@@ 167-184 (lines=18) @@
164
        );
165
    }
166
167
    public function testUidValidationResponse()
168
    {
169
        $this->createAccountInfoHandler();
170
        $this->startBenchmark();
171
172
        $num = 1000;
173
        for ($i = 0; $i < $num; $i++) {
174
            $this->gigya->accounts()->getAccountInfo(['uid' => $i]);
175
        }
176
177
        $this->printBenchmark(__METHOD__, $num);
178
        list($duration, $memory) = $this->endBenchmark();
179
        static::assertLessThan(
180
            2,
181
            $duration * 1000 / $num,
182
            'An individual request should take less than 2ms of prep and response validation'
183
        );
184
    }
185
186
    public function testSingleCallAgain()
187
    {