Completed
Push — master ( 05c86c...ecb28e )
by Daniel
02:42
created

IndexTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Jobles\Tests\Core\Index;
4
5
use Jobles\Core\Index\Index;
6
7
class IndexTest extends \PHPUnit_Framework_TestCase
8
{
9
    /**
10
     * @var Index
11
     */
12
    private $index;
13
14
    public function setUp()
15
    {
16
        $this->index = new Index('index_key', 'Index Name', 'http://index.url', 'affId');
17
    }
18
19
    public function testGetKey()
20
    {
21
        $this->assertEquals('index_key', $this->index->getKey());
22
    }
23
24
    public function testGetName()
25
    {
26
        $this->assertEquals('Index Name', $this->index->getName());
27
    }
28
29
    public function testGetUrl()
30
    {
31
        $this->assertEquals('http://index.url', $this->index->getUrl());
32
    }
33
34
    public function testGetAffiliateId()
35
    {
36
        $this->assertEquals('affId', $this->index->getAffiliateId());
37
    }
38
}
39