Passed
Branch develop (84afed)
by Paulius
04:34 queued 02:36
created

testGetPrimaryDocumentTypes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace Dokobit\Gateway\Tests;
3
4
use Dokobit\Gateway\DocumentTypeProvider;
5
6
class DocumentTypeProviderTest extends TestCase
7
{
8
    public function testGetAllDocumentTypes()
9
    {
10
11
        $ref = new \ReflectionClass('Dokobit\Gateway\DocumentTypeProvider');
12
        $this->assertEquals(count($ref->getConstants()) - 1, count(DocumentTypeProvider::getAllDocumentTypes())); // -1 due to 'asic' not really being a separate file type
13
    }
14
15
    public function testGetPrimaryDocumentTypes()
16
    {
17
        $this->assertEquals(7, count(DocumentTypeProvider::getPrimaryDocumentTypes()));
18
    }
19
}
20