Completed
Push — output_parsers_refactor ( cf2136...710907 )
by Alessandro
02:32
created

PHPUnitUtilXMLProxy::loadFile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 4
crap 2
1
<?php
2
3
namespace Paraunit\Proxy;
4
5
/**
6
 * Class PHPUnitUtilXMLProxy.
7
 *
8
 * This class exists just as a proxy, 'cause you can't mock a static method with Prophecy
9
 */
10
class PHPUnitUtilXMLProxy
11
{
12
    /**
13
     * @param $filename
14
     * @param bool|false $isHtml
15
     * @param bool|false $xinclude
16
     * @param bool|false $strict
17
     *
18
     * @return \DOMDocument
19
     */
20
    public function loadFile($filename, $isHtml = false, $xinclude = false, $strict = false)
21
    {
22
        return \PHPUnit_Util_XML::loadFile($filename, $isHtml, $xinclude, $strict);
23
    }
24
}
25