Completed
Push — 2.7 ( d95974...ce9381 )
by Luís
39s queued 22s
created

checkDeprecationMessage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Tests\Mapping;
6
7
use Doctrine\ORM\Mapping\UnderscoreNamingStrategy;
8
use Doctrine\Tests\VerifyDeprecations;
9
use PHPUnit\Framework\TestCase;
10
use const CASE_LOWER;
11
12
final class UnderscoreNamingStrategyTest extends TestCase
13
{
14
    use VerifyDeprecations;
15
16
    /** @test */
17
    public function checkDeprecationMessage() : void
18
    {
19
        $this->expectDeprecationMessage('Creating Doctrine\ORM\Mapping\UnderscoreNamingStrategy without making it number aware is deprecated and will be removed in Doctrine 3.0.');
20
        new UnderscoreNamingStrategy(CASE_LOWER, false);
21
    }
22
}
23