Failed Conditions
Push — exceptions ( 64d080...7fc4df )
by Michael
15:07
created

EmptyCriteriaNotAllowedTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 8
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testNew() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Tests\DBAL\Exception;
6
7
use Doctrine\DBAL\Exception\EmptyCriteriaNotAllowed;
8
use Doctrine\DBAL\Exception\InvalidArgumentException;
9
use PHPUnit\Framework\TestCase;
10
11
class EmptyCriteriaNotAllowedTest extends TestCase
12
{
13
    public function testNew() : void
14
    {
15
        $exception = EmptyCriteriaNotAllowed::new();
16
17
        self::assertInstanceOf(InvalidArgumentException::class, $exception);
18
        self::assertSame('Empty criteria was used, expected non-empty criteria', $exception->getMessage());
19
    }
20
}
21