Completed
Push — master ( 2d40eb...7a12ad )
by Aimeos
13:43
created

Laravel5Test::testTransform()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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 Laravel5Test extends \PHPUnit_Framework_TestCase
13
{
14
	private $object;
15
	private $mock;
16
17
18
	protected function setUp()
19
	{
20
		if( !class_exists( '\Illuminate\Http\Response' ) ) {
21
			$this->markTestSkipped( '\Illuminate\Http\Response is not available' );
22
		}
23
24
		if( !class_exists( '\Symfony\Bridge\PsrHttpMessage\Factory\DiactorosFactory' ) ) {
25
			$this->markTestSkipped( '\Symfony\Bridge\PsrHttpMessage\Factory\DiactorosFactory is not available' );
26
		}
27
28
		$view = new \Aimeos\MW\View\Standard();
29
		$response = new \Illuminate\Http\Response( 'Content' );
30
31
		$this->object = new \Aimeos\MW\View\Helper\Response\Laravel5( $view, $response );
32
	}
33
34
35
	protected function tearDown()
36
	{
37
		unset( $this->object, $this->mock );
38
	}
39
40
41
	public function testTransform()
42
	{
43
		$this->assertInstanceOf( '\Aimeos\MW\View\Helper\Response\Laravel5', $this->object->transform() );
44
	}
45
}
46