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.
Failed Conditions
Push — master ( 550dab...bc8237 )
by Casper
03:45 queued 02:01
created

ValidatorTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 20
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testEmailValidator() 0 8 1
A testPhone() 0 8 1
1
<?php
2
3
namespace NStack\Tests;
4
5
use NStack\Clients\ContinentsClient;
6
use NStack\Clients\CountriesClient;
7
use NStack\Clients\IpAddressesClient;
8
use NStack\Clients\ValidatorsClient;
9
use NStack\Models\Continent;
10
use NStack\Models\Country;
11
use NStack\Models\EmailValidation;
12
use NStack\Models\IpAddress;
13
use NStack\Models\PhoneValidation;
14
15
class ValidatorTest extends TestCase
16
{
17
    public function testEmailValidator()
18
    {
19
        $client = $this->getClientWithMockedGet('validator-email.json');
20
21
        $client = new ValidatorsClient($this->getConfig(), $client);
22
        $entry = $client->email('[email protected]');
23
24
        $this->assertInstanceOf(EmailValidation::class, $entry);
25
    }
26
27
    public function testPhone()
28
    {
29
        $client = $this->getClientWithMockedGet('validator-phone.json');
30
31
        $client = new ValidatorsClient($this->getConfig(), $client);
32
        $entry = $client->phone('61304560', 45, true, "mobile");
33
34
        $this->assertInstanceOf(PhoneValidation::class, $entry);
35
    }
36
}
37