This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from niels-nijens/drop-php5.4-support
Remove PHP 5.4 support
- Loading branch information
Showing
8 changed files
with
199 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,31 +85,31 @@ public function provideTestSupportsRepository() | |
{ | ||
$provideTest = array(); | ||
|
||
$processExecutorMock = $this->getMockBuilder('Accompli\Chrono\Process\ProcessExecutorInterface') | ||
$processExecutorMock = $this->getMockBuilder(ProcessExecutorInterface::class) | ||
->getMock(); | ||
$processExecutorMock->expects($this->once()) | ||
->method('execute') | ||
->with($this->equalTo('git --version')) | ||
->willReturn(new ProcessExecutionResult(1, '', '')); | ||
$provideTest[] = array('https://github.com/accompli/chrono.git', $processExecutorMock, false); | ||
|
||
$processExecutorMock = $this->getMockBuilder('Accompli\Chrono\Process\ProcessExecutorInterface') | ||
$processExecutorMock = $this->getMockBuilder(ProcessExecutorInterface::class) | ||
->getMock(); | ||
$processExecutorMock->expects($this->once()) | ||
->method('execute') | ||
->with($this->equalTo('git --version')) | ||
->willReturn(new ProcessExecutionResult(0, '', '')); | ||
$provideTest[] = array('https://github.com/accompli/chrono.git', $processExecutorMock, true); | ||
|
||
$processExecutorMock = $this->getMockBuilder('Accompli\Chrono\Process\ProcessExecutorInterface') | ||
$processExecutorMock = $this->getMockBuilder(ProcessExecutorInterface::class) | ||
->getMock(); | ||
$processExecutorMock->expects($this->once()) | ||
->method('execute') | ||
->with($this->equalTo('git --version')) | ||
->willReturn(new ProcessExecutionResult(0, '', '')); | ||
$provideTest[] = array('[email protected]:accompli/chrono.git', $processExecutorMock, true); | ||
|
||
$processExecutorMock = $this->getMockBuilder('Accompli\Chrono\Process\ProcessExecutorInterface') | ||
$processExecutorMock = $this->getMockBuilder(ProcessExecutorInterface::class) | ||
->getMock(); | ||
$processExecutorMock->expects($this->exactly(2)) | ||
->method('execute') | ||
|
@@ -123,7 +123,7 @@ public function provideTestSupportsRepository() | |
); | ||
$provideTest[] = array('[email protected]:accompli/chrono', $processExecutorMock, true); | ||
|
||
$processExecutorMock = $this->getMockBuilder('Accompli\Chrono\Process\ProcessExecutorInterface') | ||
$processExecutorMock = $this->getMockBuilder(ProcessExecutorInterface::class) | ||
->getMock(); | ||
$processExecutorMock->expects($this->exactly(2)) | ||
->method('execute') | ||
|
@@ -151,15 +151,15 @@ public function provideTestGetBranches() | |
|
||
$provideTest = array(); | ||
|
||
$processExecutorMock = $this->getMockBuilder('Accompli\Chrono\Process\ProcessExecutorInterface') | ||
$processExecutorMock = $this->getMockBuilder(ProcessExecutorInterface::class) | ||
->getMock(); | ||
$processExecutorMock->expects($this->once()) | ||
->method('execute') | ||
->with($this->equalTo($branchesCommand), $this->equalTo(null), $this->equalTo(array('GIT_TERMINAL_PROMPT' => '0', 'GIT_ASKPASS' => 'echo'))) | ||
->willReturn(new ProcessExecutionResult(1, '', '')); | ||
$provideTest[] = array($processExecutorMock, array()); | ||
|
||
$processExecutorMock = $this->getMockBuilder('Accompli\Chrono\Process\ProcessExecutorInterface') | ||
$processExecutorMock = $this->getMockBuilder(ProcessExecutorInterface::class) | ||
->getMock(); | ||
$processExecutorMock->expects($this->once()) | ||
->method('execute') | ||
|
@@ -181,15 +181,15 @@ public function provideTestGetTags() | |
|
||
$provideTest = array(); | ||
|
||
$processExecutorMock = $this->getMockBuilder('Accompli\Chrono\Process\ProcessExecutorInterface') | ||
$processExecutorMock = $this->getMockBuilder(ProcessExecutorInterface::class) | ||
->getMock(); | ||
$processExecutorMock->expects($this->once()) | ||
->method('execute') | ||
->with($this->equalTo($tagsCommand), $this->equalTo(null), $this->equalTo(array('GIT_TERMINAL_PROMPT' => '0', 'GIT_ASKPASS' => 'echo'))) | ||
->willReturn(new ProcessExecutionResult(1, '', '')); | ||
$provideTest[] = array($processExecutorMock, array()); | ||
|
||
$processExecutorMock = $this->getMockBuilder('Accompli\Chrono\Process\ProcessExecutorInterface') | ||
$processExecutorMock = $this->getMockBuilder(ProcessExecutorInterface::class) | ||
->getMock(); | ||
$processExecutorMock->expects($this->once()) | ||
->method('execute') | ||
|
@@ -212,7 +212,7 @@ public function provideTestCheckout() | |
|
||
$provideTest = array(); | ||
|
||
$processExecutorMock = $this->getMockBuilder('Accompli\Chrono\Process\ProcessExecutorInterface') | ||
$processExecutorMock = $this->getMockBuilder(ProcessExecutorInterface::class) | ||
->getMock(); | ||
$processExecutorMock->expects($this->once()) | ||
->method('isDirectory') | ||
|
@@ -223,7 +223,7 @@ public function provideTestCheckout() | |
->willReturn(new ProcessExecutionResult(1, '', '')); | ||
$provideTest[] = array($processExecutorMock, false); | ||
|
||
$processExecutorMock = $this->getMockBuilder('Accompli\Chrono\Process\ProcessExecutorInterface') | ||
$processExecutorMock = $this->getMockBuilder(ProcessExecutorInterface::class) | ||
->getMock(); | ||
$processExecutorMock->expects($this->once()) | ||
->method('isDirectory') | ||
|
@@ -242,7 +242,7 @@ public function provideTestCheckout() | |
); | ||
$provideTest[] = array($processExecutorMock, false); | ||
|
||
$processExecutorMock = $this->getMockBuilder('Accompli\Chrono\Process\ProcessExecutorInterface') | ||
$processExecutorMock = $this->getMockBuilder(ProcessExecutorInterface::class) | ||
->getMock(); | ||
$processExecutorMock->expects($this->once()) | ||
->method('isDirectory') | ||
|
@@ -253,7 +253,7 @@ public function provideTestCheckout() | |
->willReturn(new ProcessExecutionResult(0, '', '')); | ||
$provideTest[] = array($processExecutorMock, true); | ||
|
||
$processExecutorMock = $this->getMockBuilder('Accompli\Chrono\Process\ProcessExecutorInterface') | ||
$processExecutorMock = $this->getMockBuilder(ProcessExecutorInterface::class) | ||
->getMock(); | ||
$processExecutorMock->expects($this->once()) | ||
->method('isDirectory') | ||
|
Oops, something went wrong.