Completed
Push — master ( 49d990...a59b61 )
by Jean C.
14s
created

MoipResourceTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testEndpointGeneratePath() 0 6 1
1
<?php
2
3
namespace Moip\Tests\Resource;
4
5
use Moip\Resource\MoipResource;
6
use Moip\Resource\NotificationPreferences;
7
use Moip\Tests\TestCase;
8
9
class MoipResourceTest extends TestCase
10
{
11
    public function testEndpointGeneratePath()
12
    {
13
        $path = $this->moip->notifications()->generatePath('notifications', 'NPR-CQU74AQOIVCV');
14
        $expected = sprintf('%s/%s/%s/%s', MoipResource::VERSION, NotificationPreferences::PATH, 'notifications', 'NPR-CQU74AQOIVCV');
15
        $this->assertEquals($expected, $path);
16
    }
17
}
18