| Total Complexity | 3 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class RedirectTransactionParserTest extends WP_UnitTestCase { |
||
| 8 | /** |
||
| 9 | * Test init |
||
| 10 | */ |
||
| 11 | public function test_init() { |
||
| 12 | $filename = dirname( dirname( __FILE__ ) ) . '/Mock/redirect-transaction-response.xml'; |
||
| 13 | |||
| 14 | $simplexml = simplexml_load_file( $filename ); |
||
| 15 | |||
| 16 | $this->assertInstanceOf( 'SimpleXMLElement', $simplexml ); |
||
| 17 | |||
| 18 | return $simplexml; |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Test parser |
||
| 23 | * |
||
| 24 | * @depends test_init |
||
| 25 | */ |
||
| 26 | public function test_parser( $simplexml ) { |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Test values |
||
| 36 | * |
||
| 37 | * @depends test_parser |
||
| 38 | */ |
||
| 39 | public function test_values( $message ) { |
||
| 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..