Completed
Push — master ( 2137d2...4a0d68 )
by Aimeos
10:40
created

FlowTest   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 4
c 1
b 0
f 1
lcom 1
cbo 1
dl 0
loc 27
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 9 2
A tearDown() 0 4 1
A testTransform() 0 4 1
1
<?php
2
3
/**
4
 * @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
5
 * @copyright Aimeos (aimeos.org), 2015-2016
6
 */
7
8
9
namespace Aimeos\MW\View\Helper\Response;
10
11
12
class FlowTest extends \PHPUnit_Framework_TestCase
13
{
14
	private $object;
15
16
17
	protected function setUp()
18
	{
19
		if( !class_exists( '\Zend\Diactoros\Response' ) ) {
20
			$this->markTestSkipped( '\Zend\Diactoros\Response is not available' );
21
		}
22
23
		$view = new \Aimeos\MW\View\Standard();
24
		$this->object = new \Aimeos\MW\View\Helper\Response\Flow( $view );
25
	}
26
27
28
	protected function tearDown()
29
	{
30
		unset( $this->object );
31
	}
32
33
34
	public function testTransform()
35
	{
36
		$this->assertInstanceOf( '\Aimeos\MW\View\Helper\Response\Flow', $this->object->transform() );
37
	}
38
}
39