public function testItThrowsExceptionForBadWidgetClass() { $this->setExpectedException('\\Arrilot\\Widgets\\Misc\\InvalidWidgetClassException'); $this->factory->run('testBadSlider'); }