ErrorTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_error() 0 6 1
1
<?php
2
3
namespace Pronamic\WordPress\Pay\Gateways\PayNL;
4
5
use PHPUnit_Framework_TestCase;
6
7
/**
8
 * Title: Pay.nl error tests
9
 * Description:
10
 * Copyright: 2005-2021 Pronamic
11
 * Company: Pronamic
12
 *
13
 * @author Remco Tolsma
14
 * @version 2.0.0
15
 * @since   1.0.0
16
 */
17
class ErrorTest extends \PHPUnit_Framework_TestCase {
18
	/**
19
	 * Test error
20
	 */
21
	public function test_error() {
22
		$error = new Error( 'PAY-101', 'Location not found' );
23
24
		$expected = 'PAY-101 - Location not found';
25
26
		$this->assertEquals( $expected, (string) $error );
27
	}
28
}
29