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.
Passed
Push — master ( 07b164...660df5 )
by Kristjan
36s
created

LogicalEvaluatorTest::createMock()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace Tests\COG\ChronoShifter\Evaluator;
4
5
use COG\ChronoShifter\Evaluator\Evaluator;
6
7
/**
8
 * @author Kristjan Siimson <[email protected]>
9
 * @package Evaluator\Tests
10
 */
11
abstract class LogicalEvaluatorTest extends \PHPUnit_Framework_TestCase
12
{
13
    /**
14
     * @uses COG\ChronoShifter\Evaluator\Evaluator
15
     * @return Evaluator
16
     */
17
    protected function createMock()
18
    {
19
        return $this
20
            ->getMockBuilder('COG\ChronoShifter\Evaluator\Evaluator')
21
            ->setMethods(array('is'))
22
            ->getMockForAbstractClass();
23
    }
24
25
    /**
26
     * @param \PHPUnit_Framework_MockObject_MockObject $mock
27
     * @param bool $value
28
     */
29
    protected function mockReturns($mock, $value)
30
    {
31
        $mock
32
            ->expects($this->any())
33
            ->method('is')
34
            ->will($this->returnValue($value));
35
    }
36
}
37