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.
Completed
Push — master ( 62ab9b...ee6cec )
by Jonny
04:05
created

StringUtilsTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testCanGenerateRandomStringForSpecificLength() 0 6 1
A testRandomStringIsRandom() 0 7 1
1
<?php
2
3
/*
4
 * This file is part of the php-phantomjs.
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
namespace JonnyW\PhantomJs\Tests\Unit;
10
11
use JonnyW\PhantomJs\StringUtils;
12
13
/**
14
 * PHP PhantomJs
15
 *
16
 * @author Jon Wenmoth <[email protected]>
17
 */
18
class StringUtilsTest extends \PHPUnit_Framework_TestCase
19
{
20
21
/** +++++++++++++++++++++++++++++++++++ **/
22
/** ++++++++++++++ TESTS ++++++++++++++ **/
23
/** +++++++++++++++++++++++++++++++++++ **/
24
25
    /**
26
     * Test can generate random string for
27
     * specific length
28
     *
29
     * @access public
30
     * @return void
31
     */
32
    public function testCanGenerateRandomStringForSpecificLength()
33
    {
34
        $string = StringUtils::random(14);
35
36
        $this->assertEquals(14, strlen($string));
37
    }
38
39
    /**
40
     * Test random string is random
41
     *
42
     * @access public
43
     * @return void
44
     */
45
    public function testRandomStringIsRandom()
46
    {
47
        $string1 = StringUtils::random(14);
48
        $string2 = StringUtils::random(14);
49
50
        $this->assertNotEquals($string1, $string2);
51
    }
52
}
53