Issues (213)

tests/unit/controllers/ServerControllerTest.php (1 issue)

Labels
Severity
1
<?php
2
/**
3
 * Server module for HiPanel
4
 *
5
 * @link      https://github.com/hiqdev/hipanel-module-server
6
 * @package   hipanel-module-server
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2015-2019, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hipanel\modules\server\tests\unit\controllers;
12
13
use hipanel\modules\server\controllers\ServerController;
14
15
class ServerControllerTest extends \PHPUnit_Framework_TestCase
16
{
17
    /**
18
     * @var ServerController
19
     */
20
    protected $object;
21
22
    protected function setUp(): void
23
    {
24
        $this->object = new ServerController('test', null);
25
    }
26
27
    protected function tearDown(): void
28
    {
29
    }
30
31
    public function testActions()
32
    {
33
        $this->assertInternalType('array', $this->object->actions());
0 ignored issues
show
The method assertInternalType() does not exist on hipanel\modules\server\t...rs\ServerControllerTest. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

33
        $this->/** @scrutinizer ignore-call */ 
34
               assertInternalType('array', $this->object->actions());

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
34
    }
35
}
36