| Total Complexity | 3 | 
| Total Lines | 45 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 7 | class DirectTransactionParserTest extends WP_UnitTestCase { | 
            ||
| 8 | 	public function test_init() { | 
            ||
| 9 | $filename = dirname( dirname( __FILE__ ) ) . '/Mock/direct-transaction-response.xml';  | 
            ||
| 10 | |||
| 11 | $simplexml = simplexml_load_file( $filename );  | 
            ||
| 12 | |||
| 13 | $this->assertInstanceOf( '\SimpleXMLElement', $simplexml );  | 
            ||
| 14 | |||
| 15 | return $simplexml;  | 
            ||
| 16 | }  | 
            ||
| 17 | |||
| 18 | /**  | 
            ||
| 19 | * Test parser  | 
            ||
| 20 | *  | 
            ||
| 21 | * @depends test_init  | 
            ||
| 22 | */  | 
            ||
| 23 | 	public function test_parser( $simplexml ) { | 
            ||
| 24 | $message = XML\DirectTransactionResponseMessage::parse( $simplexml );  | 
            ||
| 25 | |||
| 26 | $this->assertInstanceOf( __NAMESPACE__ . '\XML\DirectTransactionResponseMessage', $message );  | 
            ||
| 27 | |||
| 28 | return $message;  | 
            ||
| 29 | }  | 
            ||
| 30 | |||
| 31 | /**  | 
            ||
| 32 | * Test values  | 
            ||
| 33 | *  | 
            ||
| 34 | * @depends test_parser  | 
            ||
| 35 | */  | 
            ||
| 36 | 	public function test_values( $message ) { | 
            ||
| 52 | }  | 
            ||
| 53 | }  | 
            ||
| 54 | 
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..