Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
VolCh committed Nov 21, 2017
1 parent fad4be6 commit 015b124
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 21 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Expand Up @@ -16,6 +16,10 @@ matrix:
env: SYMFONY=3.3.2 SYMFONY_DEPRECATIONS_HELPER=weak # latest version of 3.3.*
- php: 7.2
env: SYMFONY=3.3.2 SYMFONY_DEPRECATIONS_HELPER=weak # latest version of 3.3.*
- php: 7.1
env: SYMFONY=4.0.0 SYMFONY_DEPRECATIONS_HELPER=weak # latest version of 4.0.*
- php: 7.2
env: SYMFONY=4.0.0 SYMFONY_DEPRECATIONS_HELPER=weak # latest version of 4.0.*

addons:
postgresql: "9.2"
Expand Down
27 changes: 16 additions & 11 deletions composer.json
Expand Up @@ -12,8 +12,13 @@
"homepage":"http://codegyre.com"
}
],
"minimum-stability": "stable",

"minimum-stability": "RC",
"repositories": [
{
"type": "git",
"url": "https://github.com/VolCh/symfony-console-completion.git"
}
],
"require": {
"php": ">=5.4.0 <8.0",
"ext-json": "*",
Expand All @@ -24,17 +29,17 @@
"facebook/webdriver": ">=1.1.3 <2.0",
"guzzlehttp/guzzle": ">=4.1.4 <7.0",
"guzzlehttp/psr7": "~1.0",
"symfony/finder": ">=2.7 <4.0",
"symfony/console": ">=2.7 <4.0",
"symfony/event-dispatcher": ">=2.7 <4.0",
"symfony/yaml": ">=2.7 <4.0",
"symfony/browser-kit": ">=2.7 <4.0",
"symfony/css-selector": ">=2.7 <4.0",
"symfony/dom-crawler": ">=2.7.5 <4.0",
"symfony/finder": ">=2.7 <5.0",
"symfony/console": ">=2.7 <5.0",
"symfony/event-dispatcher": ">=2.7 <5.0",
"symfony/yaml": ">=2.7 <5.0",
"symfony/browser-kit": ">=2.7 <5.0",
"symfony/css-selector": ">=2.7 <5.0",
"symfony/dom-crawler": ">=2.7 <5.0",
"behat/gherkin": "~4.4.0",
"sebastian/comparator": ">1.1 <3.0",
"sebastian/diff": ">=1.4 <3.0",
"stecman/symfony-console-completion": "^0.7.0"
"stecman/symfony-console-completion": "dev-symfony4"
},
"require-dev": {
"monolog/monolog": "~1.8",
Expand All @@ -48,7 +53,7 @@
"predis/predis": "^1.0",
"squizlabs/php_codesniffer": "~2.0",
"vlucas/phpdotenv": "^2.4.0",
"symfony/process": ">=2.7 <4.0"
"symfony/process": ">=2.7 <5.0"
},
"suggest": {
"aws/aws-sdk-php": "For using AWS Auth in REST module and Queue module",
Expand Down
14 changes: 4 additions & 10 deletions tests/cli/DataProviderFailuresAndExceptionsCest.php
Expand Up @@ -43,7 +43,6 @@ public function runTestWithDataProvidersFailureStdout(\CliGuy $I)
public function runTestWithDataProvidersFailureStderr(\CliGuy $I)
{
$I->executeCommand('run -n unit DataProvidersFailureCest 2>&1',false);
$I->seeInShellOutput('[Codeception\Exception\TestParseException]');
$I->seeInShellOutput('Couldn\'t parse test');
$I->seeInShellOutput('DataProvider \'rectangle\' for DataProvidersFailureCest->testIsTriangle');
$I->seeInShellOutput('Make sure that the dataprovider exist within the test class.');
Expand All @@ -57,7 +56,6 @@ public function runTestWithDataProvidersFailureStderr(\CliGuy $I)
$I->dontSeeInShellOutput('Tests: 1, Assertions: 0, Warnings: 1.');
// In normal mode the Exception trace should not appear.
$I->dontSeeInShellOutput('Exception trace');
$I->dontSeeInShellOutput('Test'.DIRECTORY_SEPARATOR.'Loader'.DIRECTORY_SEPARATOR.'Cest.php:');
$I->seeResultCodeIs(1);
}

Expand All @@ -71,7 +69,6 @@ public function runTestWithDataProvidersFailureStderr(\CliGuy $I)
public function runTestWithDataProvidersFailureStderrVerbose(\CliGuy $I)
{
$I->executeCommand('run -n unit DataProvidersFailureCest -v 2>&1',false);
$I->seeInShellOutput('[Codeception\Exception\TestParseException]');
$I->seeInShellOutput('Couldn\'t parse test');
$I->seeInShellOutput('DataProvider \'rectangle\' for DataProvidersFailureCest->testIsTriangle');
$I->seeInShellOutput('Make sure that the dataprovider exist within the test class.');
Expand All @@ -84,8 +81,8 @@ public function runTestWithDataProvidersFailureStderrVerbose(\CliGuy $I)
$I->dontSeeInShellOutput('OK');
$I->dontSeeInShellOutput('Tests: 1, Assertions: 0, Warnings: 1.');
// In verbose mode the Exception trace should be output.
$I->seeInShellOutput('[Codeception\Exception\TestParseException]');
$I->seeInShellOutput('Exception trace');
$I->seeInShellOutput('Test'.DIRECTORY_SEPARATOR.'Loader'.DIRECTORY_SEPARATOR.'Cest.php:');
$I->seeResultCodeIs(1);

}
Expand Down Expand Up @@ -134,12 +131,10 @@ public function runTestWithDataProvidersExceptionStderr(\CliGuy $I)
$I->dontSeeInShellOutput('Couldn\'t parse test');
$I->dontSeeInShellOutput('DataProvider \'rectangle\' for DataProvidersFailureCest->testIsTriangle ');

// We should just see the exception and the message
$I->seeInShellOutput('[Exception]');
// We should just see the message
$I->seeInShellOutput('Something went wrong!!!');
// We don't have the verbose flag set, so there should be no trace.
$I->dontSeeInShellOutput('Exception trace:');
$I->dontSeeInShellOutput('DataProvidersExceptionCest');
$I->seeResultCodeIs(1);

}
Expand All @@ -165,12 +160,11 @@ public function runTestWithDataProvidersExceptionStderrVerbose(\CliGuy $I)
$I->dontSeeInShellOutput('Couldn\'t parse test');
$I->dontSeeInShellOutput('DataProvider \'rectangle\' for DataProvidersFailureCest->testIsTriangle is ');

// We should just see the exception and the message
$I->seeInShellOutput('[Exception]');
// We should just see the message
$I->seeInShellOutput('Something went wrong!!!');
// We have the verbose flag set, so there should be a trace.
$I->seeInShellOutput('[Exception]');
$I->seeInShellOutput('Exception trace:');
$I->seeInShellOutput('DataProvidersExceptionCest');
$I->seeResultCodeIs(1);
}
}

0 comments on commit 015b124

Please sign in to comment.