-
Notifications
You must be signed in to change notification settings - Fork 106
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 #12 from ikari7789/update-phpseclib
Updated PHPSecLib from 0.3.x to 2.X.
- Loading branch information
Showing
7 changed files
with
100 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,56 @@ | ||
<?php | ||
|
||
return [ | ||
/* | ||
|-------------------------------------------------------------------------- | ||
| Default Remote Connection Name | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Here you may specify the default connection that will be used for SSH | ||
| operations. This name should correspond to a connection name below | ||
| in the server list. Each connection will be manually accessible. | ||
| | ||
*/ | ||
'default' => 'production', | ||
/* | ||
|-------------------------------------------------------------------------- | ||
| Remote Server Connections | ||
|-------------------------------------------------------------------------- | ||
| | ||
| These are the servers that will be accessible via the SSH task runner | ||
| facilities of Laravel. This feature radically simplifies executing | ||
| tasks on your servers, such as deploying out these applications. | ||
| | ||
*/ | ||
'connections' => [ | ||
'production' => [ | ||
'host' => '', | ||
'username' => '', | ||
'password' => '', | ||
'key' => '', | ||
'keytext' => '', | ||
'keyphrase' => '', | ||
'agent' => '', | ||
], | ||
], | ||
/* | ||
|-------------------------------------------------------------------------- | ||
| Remote Server Groups | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Here you may list connections under a single group name, which allows | ||
| you to easily access all of the servers at once using a short name | ||
| that is extremely easy to remember, such as "web" or "database". | ||
| | ||
*/ | ||
'groups' => [ | ||
'web' => ['production'], | ||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Default Remote Connection Name | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Here you may specify the default connection that will be used for SSH | ||
| operations. This name should correspond to a connection name below | ||
| in the server list. Each connection will be manually accessible. | ||
| | ||
*/ | ||
|
||
'default' => 'production', | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Remote Server Connections | ||
|-------------------------------------------------------------------------- | ||
| | ||
| These are the servers that will be accessible via the SSH task runner | ||
| facilities of Laravel. This feature radically simplifies executing | ||
| tasks on your servers, such as deploying out these applications. | ||
| | ||
*/ | ||
|
||
'connections' => [ | ||
'production' => [ | ||
'host' => '', | ||
'username' => '', | ||
'password' => '', | ||
'key' => '', | ||
'keytext' => '', | ||
'keyphrase' => '', | ||
'agent' => '', | ||
], | ||
]; | ||
], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Remote Server Groups | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Here you may list connections under a single group name, which allows | ||
| you to easily access all of the servers at once using a short name | ||
| that is extremely easy to remember, such as "web" or "database". | ||
| | ||
*/ | ||
|
||
'groups' => [ | ||
'web' => ['production'], | ||
], | ||
|
||
]; |
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,24 +1,28 @@ | ||
<?php | ||
/* | ||
|-------------------------------------------------------------------------- | ||
| Register The Composer Auto Loader | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Composer provides a convenient, automatically generated class loader | ||
| for our application. We just need to utilize it! We'll require it | ||
| into the script here so that we do not have to worry about the | ||
| loading of any our classes "manually". Feels great to relax. | ||
| | ||
*/ | ||
require __DIR__.'/vendor/autoload.php'; | ||
/* | ||
|-------------------------------------------------------------------------- | ||
| Set The Default Timezone | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Here we will set the default timezone for PHP. PHP is notoriously mean | ||
| if the timezone is not explicitly set. This will be used by each of | ||
| the PHP date and date-time functions throughout the application. | ||
| | ||
*/ | ||
date_default_timezone_set('UTC'); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Register The Composer Auto Loader | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Composer provides a convenient, automatically generated class loader | ||
| for our application. We just need to utilize it! We'll require it | ||
| into the script here so that we do not have to worry about the | ||
| loading of any our classes "manually". Feels great to relax. | ||
| | ||
*/ | ||
|
||
require __DIR__.'/vendor/autoload.php'; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Set The Default Timezone | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Here we will set the default timezone for PHP. PHP is notoriously mean | ||
| if the timezone is not explicitly set. This will be used by each of | ||
| the PHP date and date-time functions throughout the application. | ||
| | ||
*/ | ||
|
||
date_default_timezone_set('UTC'); |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<?php | ||
use Mockery as m; | ||
|
||
use Mockery as m; | ||
|
||
class RemoteSecLibGatewayTest extends PHPUnit_Framework_TestCase | ||
{ | ||
|