DataTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_description() 0 15 1
1
<?php
2
3
namespace Pronamic\WordPress\Pay\Gateways\IDealBasic;
4
5
class DataTest extends \WP_UnitTestCase {
6
	public function test_description() {
7
		// Alphanumerical.
8
		$not_alphanumerical = '!@#$%ˆ&*()_+';
9
10
		$allowed_description = 'Example hashcode';
11
12
		$description = $allowed_description . $not_alphanumerical;
13
14
		$client = new Client();
15
		$client->set_description( $description );
16
17
		$result   = $client->get_description();
18
		$expected = $allowed_description;
19
20
		$this->assertEquals( $expected, $result );
21
	}
22
}
23