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.

FilterLoaderPluginManagerTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 15
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testValidatePlugin() 0 5 1
A testGetExceptionWithInvalidPlugin() 0 6 1
1
<?php
2
namespace HtImgModuleTest\Imagine\Filter\Loader;
3
4
use HtImgModule\Imagine\Filter\Loader\FilterLoaderPluginManager;
5
use Zend\ServiceManager\ServiceManager;
6
7
class FilterLoaderPluginManagerTest extends \PHPUnit_Framework_TestCase
8
{
9
    public function testValidatePlugin()
10
    {
11
        $filterLoaders = new FilterLoaderPluginManager(new ServiceManager());
12
        $this->assertEquals(null, $filterLoaders->validatePlugin($this->createMock('HtImgModule\Imagine\Filter\Loader\LoaderInterface')));
13
    }
14
15
    public function testGetExceptionWithInvalidPlugin()
16
    {
17
        $filterLoaders = new FilterLoaderPluginManager(new ServiceManager());
18
        $this->setExpectedException('HtImgModule\Exception\InvalidArgumentException');
0 ignored issues
show
Deprecated Code introduced by
The method PHPUnit_Framework_TestCase::setExpectedException() has been deprecated with message: Method deprecated since Release 5.2.0; use expectException() instead

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
19
        $filterLoaders->validatePlugin(new \ArrayObject);
20
    }
21
}
22