Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
BPing committed Jul 6, 2017
1 parent 4dac408 commit 335c2ca
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/PushVideoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,16 @@ public function testPush()

$pushCmd->setInput(PushInput::create()->setInputVideo('res/test.mp4'))
->setFormat(PushFormat::create())
->setOutput(PushOutput::create()->setPushUrl($pushUrl))
->push();
->setOutput(PushOutput::create()->setPushUrl($pushUrl));

echo $pushCmd->getCommandLine();
$pushCmd->push();
$this->assertTrue(!$pushCmd->isSuccessful(), 'cmd should run fail');
$this->assertTrue(!$pushCmd->getExitCode() !== 1);
$this->assertNotEmpty($pushCmd->getCommandLine(), 'cmd should not empty');
$this->assertNotEmpty($pushCmd->getExitCodeText() == 'General error', 'ExitCodeText:General error');
$this->assertContains(': Unknown error occurred', $lastStr->strMsg, 'Unknown error occurred');
$this->assertContains(': Unknown error occurred', $pushCmd->getErrorOutput(), 'error output Unknown error occurred');

}

/**
Expand Down

0 comments on commit 335c2ca

Please sign in to comment.