Completed
Push — master ( 439bd6...809810 )
by Thiago Augustus de
02:11
created

NoSpaceTest::testNoXMLSpace()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
class NoSpaceTest extends PHPUnit_Framework_TestCase
4
{
5
6
    function testNoXMLSpace() {
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
7
        $xml = simplexml_load_file( 'xml_file.xml' );
8
        $xml = NoXMLSpace::noSpace($xml);
9
        
10
        $this->assertEquals('Hello World', $xml->message);
11
    }
12
  
13
}
14