-
-
Notifications
You must be signed in to change notification settings - Fork 75
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 #154 from matteosister/march-2019-patch
March 2019 patch
- Loading branch information
Showing
37 changed files
with
88 additions
and
80 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ build/ | |
cache/ | ||
deploy_docs.sh | ||
.vscode/ | ||
composer.lock | ||
composer.lock | ||
.phpunit.result.cache |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
language: php | ||
|
||
php: | ||
- 7.1 | ||
- 7.2 | ||
- 7.3 | ||
|
||
before_script: | ||
- curl -s https://getcomposer.org/installer | php | ||
|
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
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
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 |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
* | ||
* @author Matteo Giachino <[email protected]> | ||
*/ | ||
|
||
class MainCommandTest extends TestCase | ||
{ | ||
/** | ||
|
@@ -35,7 +35,7 @@ class MainCommandTest extends TestCase | |
/** | ||
* setup | ||
*/ | ||
public function setUp() | ||
public function setUp(): void | ||
{ | ||
$this->mainCommand = new MainCommand(); | ||
} | ||
|
@@ -46,54 +46,60 @@ public function setUp() | |
public function testInit() | ||
{ | ||
$this->assertEquals(MainCommand::GIT_INIT, $this->mainCommand->init()); | ||
$this->assertEquals(MainCommand::GIT_INIT." '--bare'", $this->mainCommand->init(true)); | ||
$this->assertEquals(MainCommand::GIT_INIT . " '--bare'", $this->mainCommand->init(true)); | ||
} | ||
|
||
/** | ||
* status test | ||
*/ | ||
public function testStatus() | ||
{ | ||
$this->assertEquals("'-c' 'color.status'='false' ".MainCommand::GIT_STATUS, $this->mainCommand->status()); | ||
$this->assertEquals("'-c' 'color.status'='false' " . MainCommand::GIT_STATUS, $this->mainCommand->status()); | ||
} | ||
|
||
/** | ||
* add test | ||
*/ | ||
public function testAdd() | ||
{ | ||
$this->assertEquals(MainCommand::GIT_ADD." '--all' '.'", $this->mainCommand->add()); | ||
$this->assertEquals(MainCommand::GIT_ADD." '--all' 'foo'", $this->mainCommand->add('foo')); | ||
$this->assertEquals(MainCommand::GIT_ADD . " '--all' '.'", $this->mainCommand->add()); | ||
$this->assertEquals(MainCommand::GIT_ADD . " '--all' 'foo'", $this->mainCommand->add('foo')); | ||
} | ||
|
||
/** | ||
* unstage test | ||
*/ | ||
public function testUnstage() | ||
{ | ||
$this->assertEquals(MainCommand::GIT_RESET." 'HEAD' -- 'foo'", $this->mainCommand->unstage('foo')); | ||
$this->assertEquals(MainCommand::GIT_RESET . " 'HEAD' -- 'foo'", $this->mainCommand->unstage('foo')); | ||
} | ||
|
||
/** | ||
* commit test | ||
*/ | ||
public function testCommit() | ||
{ | ||
$this->assertEquals(MainCommand::GIT_COMMIT." '-m' 'foo'", $this->mainCommand->commit('foo')); | ||
$this->assertEquals(MainCommand::GIT_COMMIT." '-a' '-m' 'foo'", $this->mainCommand->commit('foo', true)); | ||
$this->assertEquals(MainCommand::GIT_COMMIT." '--author' 'example <[email protected]>' '-m' 'foo'", | ||
$this->mainCommand->commit('foo', false, 'example <[email protected]>')); | ||
$this->assertEquals(MainCommand::GIT_COMMIT." '-a' '--author' 'example <[email protected]>' '-m' 'foo'", | ||
$this->mainCommand->commit('foo', true, 'example <[email protected]>')); | ||
$this->assertEquals(MainCommand::GIT_COMMIT." '--author' 'example <[email protected]>' '--allow-empty' '-m' 'foo'", | ||
$this->mainCommand->commit('foo', false, 'example <[email protected]>', true)); | ||
$this->assertEquals(MainCommand::GIT_COMMIT . " '-m' 'foo'", $this->mainCommand->commit('foo')); | ||
$this->assertEquals(MainCommand::GIT_COMMIT . " '-a' '-m' 'foo'", $this->mainCommand->commit('foo', true)); | ||
$this->assertEquals( | ||
MainCommand::GIT_COMMIT . " '--author' 'example <[email protected]>' '-m' 'foo'", | ||
$this->mainCommand->commit('foo', false, 'example <[email protected]>') | ||
); | ||
$this->assertEquals( | ||
MainCommand::GIT_COMMIT . " '-a' '--author' 'example <[email protected]>' '-m' 'foo'", | ||
$this->mainCommand->commit('foo', true, 'example <[email protected]>') | ||
); | ||
$this->assertEquals( | ||
MainCommand::GIT_COMMIT . " '--author' 'example <[email protected]>' '--allow-empty' '-m' 'foo'", | ||
$this->mainCommand->commit('foo', false, 'example <[email protected]>', true) | ||
); | ||
} | ||
|
||
/** | ||
* checkout test | ||
*/ | ||
public function testCheckout() | ||
{ | ||
$this->assertEquals(MainCommand::GIT_CHECKOUT." '-q' 'master'", $this->mainCommand->checkout('master')); | ||
$this->assertEquals(MainCommand::GIT_CHECKOUT . " '-q' 'master'", $this->mainCommand->checkout('master')); | ||
} | ||
} |
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
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
Oops, something went wrong.