Completed
Push — master ( 2220bb...201e9c )
by Artem
02:47
created

SinchSupportedCountriesTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testSupportedCountry() 0 4 1
A testUnsupportedCountry() 0 4 1
1
<?php
2
/*
3
 * This file is part of the FreshSinchBundle
4
 *
5
 * (c) Artem Genvald <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Fresh\SinchBundle\Tests\Helper;
12
13
use Fresh\SinchBundle\Helper\SinchSupportedCountries;
14
15
/**
16
 * SinchSupportedCountriesTest.
17
 *
18
 * @author Artem Genvald <[email protected]>
19
 */
20
class SinchSupportedCountriesTest extends \PHPUnit_Framework_TestCase
21
{
22
    public function testSupportedCountry()
23
    {
24
        $this->assertTrue(SinchSupportedCountries::isCountrySupported('UA'));
25
    }
26
27
    public function testUnsupportedCountry()
28
    {
29
        $this->assertFalse(SinchSupportedCountries::isCountrySupported('AQ'));
30
    }
31
}
32