Completed
Push — master ( 5ab27e...dbe44c )
by Richard
02:00
created

testAssertionCodesAreUnique()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 6
rs 9.4285
1
<?php
2
namespace Assert\Tests;
3
4
use Assert\Assertion;
5
6
class AssertionCodesUniqueTest extends \PHPUnit_Framework_TestCase
7
{
8
    public function testAssertionCodesAreUnique()
9
    {
10
        $constants = (new \ReflectionClass('Assert\Assertion'))->getConstants();
11
12
        Assertion::eq(count($constants), count(array_unique($constants)));
13
    }
14
}
15