"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Component/Process/Tests/ProcessFailedExceptionTest.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

ProcessFailedExceptionTest.php  (phplist-3.4.5.tgz):ProcessFailedExceptionTest.php  (phplist-3.4.6.tgz)
skipping to change at line 32 skipping to change at line 32
/** /**
* tests ProcessFailedException throws exception if the process was successf ul. * tests ProcessFailedException throws exception if the process was successf ul.
*/ */
public function testProcessFailedExceptionThrowsException() public function testProcessFailedExceptionThrowsException()
{ {
$process = $this->getMockBuilder('Symfony\Component\Process\Process')->s etMethods(['isSuccessful'])->setConstructorArgs(['php'])->getMock(); $process = $this->getMockBuilder('Symfony\Component\Process\Process')->s etMethods(['isSuccessful'])->setConstructorArgs(['php'])->getMock();
$process->expects($this->once()) $process->expects($this->once())
->method('isSuccessful') ->method('isSuccessful')
->willReturn(true); ->willReturn(true);
if (method_exists($this, 'expectException')) { $this->expectException(\InvalidArgumentException::class);
$this->expectException(\InvalidArgumentException::class); $this->expectExceptionMessage('Expected a failed process, but the given
$this->expectExceptionMessage('Expected a failed process, but the gi process was successful.');
ven process was successful.');
} else {
$this->setExpectedException(\InvalidArgumentException::class, 'Expec
ted a failed process, but the given process was successful.');
}
new ProcessFailedException($process); new ProcessFailedException($process);
} }
/** /**
* tests ProcessFailedException uses information from process output * tests ProcessFailedException uses information from process output
* to generate exception message. * to generate exception message.
*/ */
public function testProcessFailedExceptionPopulatesInformationFromProcessOut put() public function testProcessFailedExceptionPopulatesInformationFromProcessOut put()
{ {
 End of changes. 1 change blocks. 
8 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)