GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 763a1f...59a9b7 )
by Wessel
01:52
created

AddressTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 24
rs 10
1
<?php
2
/*
3
* (c) Wessel Strengholt <[email protected]>
4
*
5
* For the full copyright and license information, please view the LICENSE
6
* file that was distributed with this source code.
7
*/
8
9
namespace Usoft\PostcodeBundle\Tests\Model;
10
11
use Usoft\PostcodeBundle\Model\Address;
12
13
/**
14
 * Class AddressTest
15
 *
16
 * @author Wessel Strengholt <[email protected]>
17
 */
18
class AddressTest extends \PHPUnit_Framework_TestCase
19
{
20
    public function testAddress()
21
    {
22
        $address = new Address('Test Street', '1010AB', 'Haarlem', 666, 'Noord-Holland');
23
        $address->setGeoLocation(['lat' => 42.3243, 'long' => 32.3424]);
24
25
        $this->assertSame($address->getStreet(), 'Test Street');
26
        $this->assertSame($address->getZipcode(), '1010AB');
27
        $this->assertSame($address->getCity(), 'Haarlem');
28
        $this->assertSame($address->getNumber(), 666);
29
        $this->assertSame($address->getProvince(), 'Noord-Holland');
30
        $this->assertSame($address->getGeoLocation(), ['lat' => 42.3243, 'long' => 32.3424]);
31
32
        $this->assertSame([
33
            'street'        => 'Test Street',
34
            'zipcode'       => '1010AB',
35
            'city'          => 'Haarlem',
36
            'house_number'  => 666,
37
            'province'      => 'Noord-Holland',
38
            'geo_location'  => ['lat' => 42.3243, 'long' => 32.3424],
39
        ], $address->toArray());
40
    }
41
}
42