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

EmptyCriteriaNotAllowedTest::testNew()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
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