public function testEndWithoutSettingDocRootFirstShouldThrowException() { $this->setExpectedException('\\RuntimeException', 'Please set a document root either with setDocRoot() or via runtime through bundle options.'); $bundle = new Bundle(); $bundle->start(); $bundle->end(); }