Total Complexity | 3 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class DirectTransactionParserTest extends WP_UnitTestCase { |
||
8 | public function test_init() { |
||
9 | $filename = 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 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths