DemoTest::tearDown()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
nc 1
nop 0
dl 0
loc 5
c 1
b 0
f 0
cc 1
rs 10
1
<?php
2
3
namespace Aimeos\Admin\Jsonadm;
4
5
6
class DemoTest extends \PHPUnit\Framework\TestCase
0 ignored issues
show
Bug introduced by
The type PHPUnit\Framework\TestCase 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...
7
{
8
	private $object;
9
10
11
	/**
12
	 * Sets up the fixture, for example, opens a network connection.
13
	 * This method is called before a test is executed.
14
	 */
15
	protected function setUp() : void
16
	{
17
		\Aimeos\MShop::cache( true );
18
19
		// $this->object = new \Aimeos\Admin\Jsonadm\Demo\Standard( \TestHelperJsonadm::getContext() );
20
	}
21
22
23
	/**
24
	 * Tears down the fixture, for example, closes a network connection.
25
	 * This method is called after a test is executed.
26
	 */
27
	protected function tearDown() : void
28
	{
29
		\Aimeos\MShop::cache( false );
30
31
		unset( $this->object );
32
	}
33
34
35
	public function testDemo()
36
	{
37
		$this->markTestIncomplete( 'Just a demo' );
38
	}
39
}
40