public function testitShouldRunACommandInTheScopeOfTheApplication() { $whatIsThis = null; $this->application->command('foo', function () use(&$whatIsThis) { $whatIsThis = $this; }); $this->assertOutputIs('foo', ''); $this->assertSame($this->application, $whatIsThis); }