-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
351 additions
and
382 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
/** | ||
* This file is part of the Phalcon Framework. | ||
* | ||
* (c) Phalcon Team <team@phalconphp.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE.txt | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Phalcon\Test\Cli\Cli\Dispatcher; | ||
|
||
use CliTester; | ||
use Phalcon\Cli\Console; | ||
use Phalcon\Test\Fixtures\Traits\DiTrait; | ||
|
||
class GetSetDICest | ||
{ | ||
use DiTrait; | ||
|
||
/** | ||
* Tests Phalcon\Cli\Dispatcher :: getDI()/setDI() | ||
* | ||
* @author Phalcon Team <team@phalconphp.com> | ||
* @since 2018-11-13 | ||
*/ | ||
public function cliDispatcherGetSetDI(CliTester $I) | ||
{ | ||
$I->wantToTest('Cli\Dispatcher - getDI()/getDI()'); | ||
|
||
$container = $this->newCliFactoryDefault(); | ||
$console = new Console(); | ||
|
||
$console->setDI($container); | ||
|
||
$actual = $console->getDI(); | ||
$I->assertEquals($container, $actual); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
/** | ||
* This file is part of the Phalcon Framework. | ||
* | ||
* (c) Phalcon Team <team@phalconphp.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE.txt | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Phalcon\Test\Cli\Cli\Dispatcher; | ||
|
||
use CliTester; | ||
use Phalcon\Cli\Console; | ||
use Phalcon\Events\Manager; | ||
|
||
class GetSetEventsManagerCest | ||
{ | ||
/** | ||
* Tests Phalcon\Cli\Dispatcher :: getEventsManager()/setEventsManager() | ||
* | ||
* @author Phalcon Team <team@phalconphp.com> | ||
* @since 2018-11-13 | ||
*/ | ||
public function cliDispatcherGetSetEventsManager(CliTester $I) | ||
{ | ||
$I->wantToTest('Cli\Dispatcher - getEventsManager()/setEventsManager()'); | ||
|
||
$console = new Console(); | ||
$manager = new Manager(); | ||
|
||
$console->setEventsManager($manager); | ||
|
||
$actual = $console->getEventsManager(); | ||
$I->assertEquals($manager, $actual); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.