| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | class PaymentTest extends WP_UnitTestCase { |
||
| 23 | /** |
||
| 24 | * Test construct payment object. |
||
| 25 | */ |
||
| 26 | public function test_construct() { |
||
| 27 | $payment = new Payment(); |
||
| 28 | |||
| 29 | $this->assertInstanceOf( __NAMESPACE__ . '\Payment', $payment ); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Test setting and getting the payment ID. |
||
| 34 | */ |
||
| 35 | public function test_set_and_get_id() { |
||
| 36 | $payment = new Payment(); |
||
| 37 | |||
| 38 | $id = uniqid(); |
||
| 39 | |||
| 40 | $payment->set_id( $id ); |
||
| 41 | |||
| 42 | $this->assertEquals( $id, $payment->get_id() ); |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Test setting and getting the payment transaction ID. |
||
| 47 | */ |
||
| 48 | public function test_set_and_get_transaction_id() { |
||
| 56 | } |
||
| 57 | } |
||
| 58 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths