Test Failed
Push — develop ( 3fe45f...4503bb )
by Reüel
13:51
created

tests/src/StatusesTest.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Pronamic\WordPress\Pay\Gateways\EMS\ECommerce;
4
5
use Pronamic\WordPress\Pay\Payments\PaymentStatus as Core_Statuses;
0 ignored issues
show
The type Pronamic\WordPress\Pay\Payments\PaymentStatus was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
/**
8
 * Title: EMS e-Commerce Gateway statuses constants tests
9
 * Description:
10
 * Copyright: 2005-2019 Pronamic
11
 * Company: Pronamic
12
 *
13
 * @author Remco Tolsma
14
 * @version 2.0.0
15
 * @since 1.0.0
16
 */
17
class StatusesTest extends \PHPUnit_Framework_TestCase {
18
	/**
19
	 * Test transform.
20
	 *
21
	 * @dataProvider status_matrix_provider
22
	 */
23
	public function test_transform( $ems_status, $expected ) {
24
		$status = Statuses::transform( $ems_status );
25
26
		$this->assertEquals( $expected, $status );
27
	}
28
29
	public function status_matrix_provider() {
30
		return array(
31
			array( Statuses::OPEN, Core_Statuses::OPEN ),
32
			array( 'not existing status', null ),
33
		);
34
	}
35
}
36