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

tests/ItemTest.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Pronamic\WordPress\Pay\Gateways\IDealBasic;
4
5
use Pronamic\WordPress\Money\Money;
6
7
class ItemTest 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...
8
	/**
9
	 * Test item.
10
	 */
11
	public function test_item() {
12
		$item = new Item( '1', 'Description', 1, new Money( 123.50 ) );
13
14
		$this->assertEquals( '1', $item->get_number() );
15
		$this->assertEquals( 'Description', $item->get_description() );
16
		$this->assertEquals( 1, $item->get_quantity() );
17
		$this->assertEquals( new Money( 123.50 ), $item->get_price() );
18
		$this->assertEquals( 123.50, $item->get_amount() );
19
	}
20
}
21