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.

Zookal_Mock_Test_Model_ObserverTest::getInstance()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
/**
4
 * @category    Zookal_Mock
5
 * @package     Helper
6
 * @author      Cyrill Schumacher | {firstName}@{lastName}.fm | @SchumacherFM
7
 * @copyright   Copyright (c) Zookal Pty Ltd
8
 * @license     OSL - Open Software Licence 3.0 | http://opensource.org/licenses/osl-3.0.php
9
 */
10
class Zookal_Mock_Test_Model_ObserverTest extends EcomDev_PHPUnit_Test_Case
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
11
{
12
    protected $_class = 'Zookal_Mock_Model_Observer';
13
14
    /**
15
     * @return Zookal_Mock_Model_Observer
16
     */
17
    public function getInstance()
18
    {
19
        $instance = new $this->_class;
20
21
        return $instance;
22
    }
23
24
    /**
25
     * @test
26
     */
27
    public function itShouldExist()
28
    {
29
        $this->assertTrue(class_exists($this->_class), "Failed asserting {$this->_class} exists");
30
    }
31
32
    /**
33
     * @test
34
     */
35
    public function itShouldHaveAMethodMockDisabledModules()
36
    {
37
        $this->assertTrue(is_callable(array($this->_class, 'mockDisabledModules')));
38
    }
39
40
    /**
41
     * @test
42
     */
43
    public function itShouldMockDisabledModules()
44
    {
45
        $this->assertTrue(true); // @todo
46
    }
47
}