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

AssertionCodesUniqueTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Dependencies 2

Importance

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

1 Method

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