Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
phundament
app
Commits
b67af5f6
Commit
b67af5f6
authored
Mar 31, 2016
by
Tobias Munk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added CLI tests
parent
013b9eda
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
551 additions
and
0 deletions
+551
-0
CliTester.php
tests/codeception/_support/CliTester.php
+26
-0
CliTesterActions.php
tests/codeception/_support/_generated/CliTesterActions.php
+489
-0
cli.suite.yml
tests/codeception/cli.suite.yml
+11
-0
GiiCept.php
tests/codeception/cli/GiiCept.php
+14
-0
YiiCept.php
tests/codeception/cli/YiiCept.php
+8
-0
_bootstrap.php
tests/codeception/cli/_bootstrap.php
+3
-0
No files found.
tests/codeception/_support/CliTester.php
0 → 100644
View file @
b67af5f6
<?php
/**
* Inherited Methods
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void execute($callable)
* @method void expectTo($prediction)
* @method void expect($prediction)
* @method void amGoingTo($argumentation)
* @method void am($role)
* @method void lookForwardTo($achieveValue)
* @method void comment($description)
* @method \Codeception\Lib\Friend haveFriend($name, $actorClass = NULL)
*
* @SuppressWarnings(PHPMD)
*/
class
CliTester
extends
\Codeception\Actor
{
use
_generated\CliTesterActions
;
/**
* Define custom actions here
*/
}
tests/codeception/_support/_generated/CliTesterActions.php
0 → 100644
View file @
b67af5f6
This diff is collapsed.
Click to expand it.
tests/codeception/cli.suite.yml
0 → 100644
View file @
b67af5f6
# Codeception Test Suite Configuration
# suite for acceptance tests.
# perform tests in browser using the WebDriver or PhpBrowser.
# If you need both WebDriver and PHPBrowser tests - create a separate suite.
class_name
:
CliTester
modules
:
enabled
:
-
Filesystem
-
Cli
tests/codeception/cli/GiiCept.php
0 → 100644
View file @
b67af5f6
<?php
// @group mandatory
$I
=
new
CliTester
(
$scenario
);
$I
->
runShellCommand
(
"/app/yii help gii"
);
$I
->
seeInShellOutput
(
'DESCRIPTION'
);
$I
->
seeInShellOutput
(
'SUB-COMMANDS'
);
$I
->
seeInShellOutput
(
'gii/'
);
$I
->
runShellCommand
(
"/app/yii help gii/giiant-crud"
);
$I
->
seeInShellOutput
(
'DESCRIPTION'
);
$I
->
seeInShellOutput
(
'yii gii/giiant-crud'
);
tests/codeception/cli/YiiCept.php
0 → 100644
View file @
b67af5f6
<?php
// @group mandatory
$I
=
new
CliTester
(
$scenario
);
$I
->
runShellCommand
(
'/app/yii'
);
$I
->
seeInShellOutput
(
'This is Yii version 2.0.'
);
tests/codeception/cli/_bootstrap.php
0 → 100755
View file @
b67af5f6
<?php
// add cli testing specific bootstrap code here
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment