Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | public function testRender() |
||
39 | { |
||
40 | $view = $this->getMockBuilder( '\Illuminate\View\View' ) |
||
41 | ->setMethods( array( 'render' ) ) |
||
42 | ->disableOriginalConstructor() |
||
43 | ->getMock(); |
||
44 | |||
45 | $view->expects( $this->once() )->method( 'render' ) |
||
46 | ->will( $this->returnValue( 'test' ) ); |
||
47 | |||
48 | $this->mock->expects( $this->once() )->method( 'file' ) |
||
49 | ->will( $this->returnValue( $view) ); |
||
50 | |||
51 | $result = $this->object->render( 'filepath', array( 'key' => 'value' ) ); |
||
52 | $this->assertEquals( 'test', $result ); |
||
53 | } |
||
54 | } |
||
55 |