ModulechecksTest::TestDevBuild()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
class ModulechecksTest extends SapphireTest
4
{
5
    protected $usesDatabase = false;
6
7
    protected $requiredExtensions = array();
8
9
    public function TestDevBuild()
10
    {
11
        $exitStatus = shell_exec('php framework/cli-script.php dev/build flush=all  > dev/null; echo $?');
12
        $exitStatus = intval(trim($exitStatus));
13
        $this->assertEquals(0, $exitStatus);
0 ignored issues
show
Bug introduced by
The method assertEquals() does not exist on ModulechecksTest. Did you maybe mean assertDOSEquals()? ( Ignorable by Annotation )

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

13
        $this->/** @scrutinizer ignore-call */ 
14
               assertEquals(0, $exitStatus);

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...
14
    }
15
}
16