/**
  * @covers \Box\TestScribe\Renderers\ExceptionRenderer::genExceptionExpectation
  * @covers \Box\TestScribe\Renderers\ExceptionRenderer
  */
 public function test_genExceptionExpectation_with_msg()
 {
     // Setup mocks for parameters to the method under test.
     /** @var \Box\TestScribe\Execution\ExecutionResult $mockExecutionResult1 */
     $mockExecutionResult1 = $this->shmock('\\Box\\TestScribe\\Execution\\ExecutionResult', function ($shmock) {
         $shmock->order_matters();
         $shmock->disable_original_constructor();
         /** @var $mock \Shmock\Spec */
         $mock = $shmock->getException();
         $mock->return_value(new TestScribeException("Bad!\nStop."));
     });
     // Execute the method under test.
     $objectUnderTest = new \Box\TestScribe\Renderers\ExceptionRenderer(new VarExporter());
     $executionResult = $objectUnderTest->genExceptionExpectation($mockExecutionResult1);
     // Validate the execution result.
     $expected = '$this->setExpectedException(\'Box\\\\TestScribe\\\\Exception\\\\TestScribeException\',' . ' \'Bad!\' . "\\n" .' . "\n" . '\'Stop.\');';
     $this->assertSame($expected, $executionResult, 'Variable ( executionResult ) doesn\'t have the expected value.');
 }
 /**
  * @covers \Box\TestScribe\Renderers\ExceptionRenderer::genExceptionExpectation
  * @covers \Box\TestScribe\Renderers\ExceptionRenderer
  */
 public function test_genExceptionExpectation()
 {
     // Setup mocks for parameters to the method under test.
     /** @var \Box\TestScribe\Execution\ExecutionResult $mockExecutionResult */
     $mockExecutionResult = $this->shmock('\\Box\\TestScribe\\Execution\\ExecutionResult', function ($shmock) {
         $shmock->order_matters();
         $shmock->disable_original_constructor();
         /** @var $mock \Shmock\Spec */
         $mock = $shmock->getException();
         $mock->return_value(null);
     });
     // Execute the method under test.
     // Setup mocks for parameters to the constructor.
     /** @var \Box\TestScribe\Utils\VarExporter $mockVarExporter */
     $mockVarExporter = $this->shmock('\\Box\\TestScribe\\Utils\\VarExporter', function ($shmock) {
         $shmock->order_matters();
         $shmock->disable_original_constructor();
     });
     $objectUnderTest = new \Box\TestScribe\Renderers\ExceptionRenderer($mockVarExporter);
     $executionResult = $objectUnderTest->genExceptionExpectation($mockExecutionResult);
     // Validate the execution result.
     $expected = '';
     $this->assertSame($expected, $executionResult, 'Variable ( executionResult ) doesn\'t have the expected value.');
 }