Completed
Push — master ( 1b0014...e530af )
by Tobias
03:11
created

AddressCollectionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 11
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Geocoder package.
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @license    MIT License
11
 */
12
13
namespace Geocoder\Tests\Model;
14
15
use Geocoder\Model\AddressCollection;
16
use PHPUnit\Framework\TestCase;
17
18
/**
19
 * @author Tobias Nyholm <[email protected]>
20
 */
21
class AddressCollectionTest extends TestCase
22
{
23
    /**
24
     * @expectedException \Geocoder\Exception\CollectionIsEmpty
25
     */
26
    public function testFirstOnEmpty()
27
    {
28
        $collection = new AddressCollection([]);
29
        $collection->first();
30
    }
31
}
32