Completed
Branch output_parsers_refactor (d2cb12)
by Alessandro
02:20
created

SegFaultTestStub   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 4
Bugs 2 Features 0
Metric Value
wmc 2
c 4
b 2
f 0
lcom 0
cbo 1
dl 0
loc 11
rs 10
1
<?php
2
3
namespace Paraunit\Tests\Stub;
4
5
/**
6
 * Class SegFaultTestStub
7
 * @package Paraunit\Tests\Stub
8
 */
9
class SegFaultTestStub extends BrokenTestBase implements BrokenTestInterface
10
{
11
    public function testBrokenTest()
12
    {
13
        if (extension_loaded('sigsegv')) {
14
            sigsegv();
15
        } else {
16
            preg_match("/http:\/\/(.)+\.ru/i", str_repeat('http://google.ru', 2000));
17
        }
18
    }
19
}
20