diff --git a/Test/Case/Pdf/CakePdfTest.php b/Test/Case/Pdf/CakePdfTest.php index e3fbab6b..d1b5c23c 100644 --- a/Test/Case/Pdf/CakePdfTest.php +++ b/Test/Case/Pdf/CakePdfTest.php @@ -36,7 +36,7 @@ public static function provider() { /** * Tests expection to be thrown for a non existing engine - + * * @expectedException Exception */ public function testNonExistingEngineException() { @@ -45,6 +45,17 @@ public function testNonExistingEngineException() { $pdf = new CakePdf($config); } +/** + * Tests that engine returns the proper object + * + * @dataProvider provider + */ + public function testEngine($config) { + $pdf = new CakePdf($config); + $engine = $pdf->engine(); + $this->assertEqual('PdfTestEngine', get_class($engine)); + } + /** * * @dataProvider provider