Failed Conditions
Push — master ( ef4611...12f600 )
by Remco
11:54 queued 05:55
created

ErrorTest   A

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\Ingenico;
4
5
class ErrorTest extends \WP_UnitTestCase {
6
	/**
7
	 * Test error.
8
	 */
9
	public function test_error() {
10
		$error = new Error( 'code', 'explanation' );
11
12
		$string = (string) $error;
13
14
		$this->assertEquals( 'code explanation', $string );
15
	}
16
}
17