public function setUp() { if (!$this->app) { $this->app = $this->createApplication()->bootstrap(); } }