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

UnderscoreNamingStrategyTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
dl 0
loc 9
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A checkDeprecationMessage() 0 4 1
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