コード例 #1
0
ファイル: BuildCommandTest.php プロジェクト: box-project/box3
 /**
  * Verifies that we can create an archive using the default stub.
  */
 public function testExecuteDefaultStub()
 {
     // create project configuration
     file_put_contents($this->dir . '/box.yml', '');
     // reload the application
     $this->app = $this->createApp($this->dir);
     // build the archive
     $status = $this->runCommand(new ArrayInput(array('command' => 'build')), $output);
     if (0 !== $status) {
         self::markTestIncomplete($this->readOutput($output));
     }
     // make sure the default stub is used
     $builder = new Builder($this->dir . '/out.phar');
     $this->setExpectedException('RuntimeException', 'Unable to read stub');
     self::assertContains('class Extract_Archive', $builder->getStub());
 }