public function testInitializationWithBadRenderer() { $expected = "Class `Badness` of type `adapter.template.view` not found."; $this->assertException($expected, function () { new View(array('renderer' => 'Badness')); }); }