malkusch\lock\mutex\TransactionalMutexTest::testInvalidErrorMode PHP Method

testInvalidErrorMode() public method

Tests building the mutex with an invalid error mode.
public testInvalidErrorMode ( integer $mode )
$mode integer The invalid error mode.
    public function testInvalidErrorMode($mode)
    {
        $pdo = new \PDO("sqlite::memory:");
        $pdo->setAttribute(\PDO::ATTR_ERRMODE, $mode);
        new TransactionalMutex($pdo);
    }