public function testEndWithoutPriorBundleCallShouldThrowException() { $this->setExpectedException('\\RuntimeException', 'end() is called without a start() call.'); $this->bundle->end(); }