Completed
Pull Request — master (#34)
by Alessandro
03:03 queued 40s
created

MySQLLockTimeoutTestStub   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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