Completed
Push — master ( b46c0d...fe698d )
by Aimeos
06:27
created

ExampleTest::tearDown()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/**
4
 * @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
5
 * @copyright Metaways Infosystems GmbH, 2012
6
 * @copyright Aimeos (aimeos.org), 2015-2017
7
 */
8
9
10
namespace Aimeos\Controller\Frontend\Service\Decorator;
11
12
13
class ExampleTest extends \PHPUnit_Framework_TestCase
14
{
15
	private $object;
16
17
18
	protected function setUp()
19
	{
20
		$context = \TestHelperFrontend::getContext();
21
		$controller = \Aimeos\Controller\Frontend\Service\Factory::createController( $context, 'Standard' );
22
		$this->object = new \Aimeos\Controller\Frontend\Service\Decorator\Example( $controller, $context );
23
	}
24
25
26
	protected function tearDown()
27
	{
28
		$this->object = null;
29
	}
30
31
32
	public function testCall()
33
	{
34
		$this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Service\\Exception' );
35
		$this->object->checkServiceAttributes( 'delivery', -1, array() );
36
	}
37
38
}
39