Test Failed
Pull Request — master (#132)
by Alessandro
03:15
created

SQLiteDeadLockTestStub   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testBrokenTest() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Tests\Stub;
6
7
/**
8
 * Class SQLiteDeadLockTestStub
9
 * @package Tests\Stub
10
 */
11
class SQLiteDeadLockTestStub extends BrokenTestBase implements BrokenTestInterface
12
{
13
    const OUTPUT = 'SQLSTATE[HY000]: General error: 5 database is locked (SQL: insert into "wallets" ("name", "user_id", "updated_at", "created_at") values (test_wallet, 1, 2015-11-25 21:07:38, 2015-11-25 21:07:38))';
14
15
    /**
16
     * @throws \Exception
17
     */
18
    public function testBrokenTest()
19
    {
20
        throw new \Exception(self::OUTPUT);
21
    }
22
}
23