AimeosTest::testGet()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
class AimeosTest extends AimeosTestAbstract
4
{
5
	public function testGet()
6
	{
7
		$object = $this->app->make( '\Aimeos\Shop\Base\Aimeos' )->get();
0 ignored issues
show
Bug introduced by
The method make() does not exist on null. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

7
		$object = $this->app->/** @scrutinizer ignore-call */ make( '\Aimeos\Shop\Base\Aimeos' )->get();

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
8
		$this->assertInstanceOf( '\Aimeos\Bootstrap', $object );
9
	}
10
11
12
	public function testGetVersion()
13
	{
14
		$object = $this->app->make( '\Aimeos\Shop\Base\Aimeos' );
15
		$this->assertIsString( $object->getVersion() );
16
	}
17
}
18