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

MoipResourceTest::testEndpointGeneratePath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 6
rs 9.4285
c 1
b 0
f 0
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