Skip to content

Commit

Permalink
Adding test to check the non existing engine exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Jelle Henkens committed May 11, 2012
1 parent 73dea75 commit a6fb4ad
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Test/Case/Pdf/CakePdfTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ public static function provider() {
))));
}

/**
* Tests expection to be thrown for a non existing engine
* @expectedException Exception
*/
public function testNonExistingEngineException() {
$config = array('engine' => 'NonExistingEngine');

$pdf = new CakePdf($config);
}

/**
*
* @dataProvider provider
Expand Down

0 comments on commit a6fb4ad

Please sign in to comment.