1 | <?php |
||
2 | |||
3 | namespace Pronamic\WordPress\Pay\Gateways\TargetPay; |
||
4 | |||
5 | use PHPUnit_Framework_TestCase; |
||
6 | use Pronamic\WordPress\Pay\Payments\PaymentStatus as Core_Statuses; |
||
0 ignored issues
–
show
|
|||
7 | |||
8 | /** |
||
9 | * Title: TargetPay response codes tests |
||
10 | * Description: |
||
11 | * Copyright: 2005-2019 Pronamic |
||
12 | * Company: Pronamic |
||
13 | * |
||
14 | * @author Remco Tolsma |
||
15 | * @version 2.0.0 |
||
16 | * @since 1.0.0 |
||
17 | */ |
||
18 | class ResponseCodesTest extends PHPUnit_Framework_TestCase { |
||
19 | /** |
||
20 | * Test transform |
||
21 | * |
||
22 | * @dataProvider status_matrix_provider |
||
23 | * |
||
24 | * @param $response_code |
||
25 | * @param $expected |
||
26 | */ |
||
27 | public function test_transform( $response_code, $expected ) { |
||
28 | $status = Statuses::transform( $response_code ); |
||
29 | |||
30 | $this->assertEquals( $expected, $status ); |
||
31 | } |
||
32 | |||
33 | public function status_matrix_provider() { |
||
34 | return array( |
||
35 | array( Statuses::OK, Core_Statuses::SUCCESS ), |
||
36 | array( Statuses::TRANSACTION_NOT_COMPLETED, Core_Statuses::OPEN ), |
||
37 | array( Statuses::TRANSACTION_CANCLLED, Core_Statuses::CANCELLED ), |
||
38 | array( Statuses::TRANSACTION_EXPIRED, Core_Statuses::EXPIRED ), |
||
39 | array( 'not existing response code', null ), |
||
40 | ); |
||
41 | } |
||
42 | } |
||
43 |
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