示例#1
0
 /**
  * @test
  */
 public function render_withoutTemplateEngine_returnString()
 {
     $this->mockedFileLoader->shouldReceive('load')->with('test', 'template')->andReturn('test {{param1}} test {{param2}} test');
     $response = $this->invokeMethod('render', ['test', ['param1' => 'value1', 'param2' => 'value2']]);
     $this->assertInstanceOf('Neat\\Http\\Response', $response);
     $this->assertSame('test value1 test value2 test', $response->body);
 }