Test Failed
Push — develop ( 1009b1...0ad1b1 )
by Reüel
02:49
created

tests/DataTest.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Pronamic\WordPress\Pay\Gateways\IDealBasic;
4
5
class DataTest extends \WP_UnitTestCase {
0 ignored issues
show
The type WP_UnitTestCase 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
	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