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