ErrnoTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 11
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGettingErrorNameByCode() 0 4 1
1
<?php
2
/**
3
 * DronePHP (http://www.dronephp.com)
4
 *
5
 * @link      http://github.com/Pleets/DronePHP
6
 * @copyright Copyright (c) 2016-2018 Pleets. (http://www.pleets.org)
7
 * @license   http://www.dronephp.com/license
8
 * @author    Darío Rivera <[email protected]>
9
 */
10
11
namespace DroneTest\Error;
12
13
use Drone\Error\Errno;
14
use PHPUnit\Framework\TestCase;
15
16
class ErrnoTest extends TestCase
17
{
18
    /**
19
     * Tests if will we get the error name from a given code
20
     *
21
     * @return null
22
     */
23
    public function testGettingErrorNameByCode()
24
    {
25
        $errno = Errno::getErrorNameByCode(2);
26
        $this->assertSame('FILE_NOT_FOUND', $errno);
27
    }
28
}
29