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::testEmailValidator()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 8
rs 10
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