Completed
Push — master ( c02786...ba52e0 )
by Alessandro
5s
created

MySQLDeadLockTestStub   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 3
Bugs 0 Features 2
Metric Value
wmc 1
c 3
b 0
f 2
lcom 0
cbo 1
dl 0
loc 12
rs 10
1
<?php
2
3
namespace Paraunit\Tests\Stub;
4
5
/**
6
 * Class MySQLDeadLockTestStub
7
 * @package Paraunit\Tests\Stub
8
 */
9
class MySQLDeadLockTestStub extends BrokenTestBase implements BrokenTestInterface
10
{
11
    const OUTPUT = 'SQLSTATE[HY000]: General error: Deadlock found; try restarting transaction';
12
13
    /**
14
     * @throws \Exception
15
     */
16
    public function testBrokenTest()
17
    {
18
        throw new \Exception(self::OUTPUT);
19
    }
20
}
21