@@ -16,48 +16,48 @@ |
||
16 | 16 | |
17 | 17 | protected function setUp() |
18 | 18 | { |
19 | - if( !class_exists( '\Slim\Http\Stream' ) ) { |
|
20 | - $this->markTestSkipped( '\Slim\Http\Stream is not available' ); |
|
19 | + if (!class_exists('\Slim\Http\Stream')) { |
|
20 | + $this->markTestSkipped('\Slim\Http\Stream is not available'); |
|
21 | 21 | } |
22 | 22 | |
23 | - $response = $this->getMockBuilder( '\Psr\Http\Message\ResponseInterface' )->getMock(); |
|
23 | + $response = $this->getMockBuilder('\Psr\Http\Message\ResponseInterface')->getMock(); |
|
24 | 24 | |
25 | 25 | $view = new \Aimeos\MW\View\Standard(); |
26 | - $this->object = new \Aimeos\MW\View\Helper\Response\Slim( $view, $response ); |
|
26 | + $this->object = new \Aimeos\MW\View\Helper\Response\Slim($view, $response); |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | |
30 | 30 | protected function tearDown() |
31 | 31 | { |
32 | - unset( $this->object ); |
|
32 | + unset($this->object); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | |
36 | 36 | public function testTransform() |
37 | 37 | { |
38 | - $this->assertInstanceOf( '\Aimeos\MW\View\Helper\Response\Slim', $this->object->transform() ); |
|
39 | - $this->assertInstanceOf( '\Psr\Http\Message\ResponseInterface', $this->object->transform() ); |
|
38 | + $this->assertInstanceOf('\Aimeos\MW\View\Helper\Response\Slim', $this->object->transform()); |
|
39 | + $this->assertInstanceOf('\Psr\Http\Message\ResponseInterface', $this->object->transform()); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | |
43 | 43 | public function testCreateStream() |
44 | 44 | { |
45 | - $stream = $this->object->createStream( fopen( __FILE__, 'r' ) ); |
|
45 | + $stream = $this->object->createStream(fopen(__FILE__, 'r')); |
|
46 | 46 | |
47 | - $this->assertInstanceOf( '\Slim\Http\Stream', $stream ); |
|
48 | - $this->assertInstanceOf( '\Psr\Http\Message\StreamInterface', $stream ); |
|
47 | + $this->assertInstanceOf('\Slim\Http\Stream', $stream); |
|
48 | + $this->assertInstanceOf('\Psr\Http\Message\StreamInterface', $stream); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | |
52 | 52 | public function testCreateStreamFilename() |
53 | 53 | { |
54 | - $this->assertInstanceOf( '\Psr\Http\Message\StreamInterface', $this->object->createStream( __FILE__ ) ); |
|
54 | + $this->assertInstanceOf('\Psr\Http\Message\StreamInterface', $this->object->createStream(__FILE__)); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | |
58 | 58 | public function testCreateStreamInvalid() |
59 | 59 | { |
60 | - $this->setExpectedException( '\Exception' ); |
|
60 | + $this->setExpectedException('\Exception'); |
|
61 | 61 | $this->object->createStream( -1 ); |
62 | 62 | } |
63 | 63 | } |