Created
February 1, 2015 12:43
-
-
Save velikanov/d08ada2e11f46179bec5 to your computer and use it in GitHub Desktop.
Behat Symfony2 Extension variable issue
This file contains hidden or 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
default: | |
suites: | |
locale: | |
type: symfony_bundle | |
bundle: OrkestroLocaleBundle | |
contexts: | |
- FeatureContext: | |
session: '@session' | |
extensions: | |
Behat\Symfony2Extension: ~ |
This file contains hidden or 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
./bin/behat |
This file contains hidden or 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
<?php | |
use Behat\Behat\Context\Context; | |
use Behat\Behat\Context\SnippetAcceptingContext; | |
use Behat\Gherkin\Node\PyStringNode; | |
use Behat\Gherkin\Node\TableNode; | |
/** | |
* Defines application features from the specific context. | |
*/ | |
class FeatureContext implements Context, SnippetAcceptingContext | |
{ | |
/** | |
* Initializes context. | |
* | |
* Every scenario gets its own context instance. | |
* You can also pass arbitrary arguments to the | |
* context constructor through behat.yml. | |
*/ | |
public function __construct($session) | |
{ | |
} | |
} |
This file contains hidden or 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
Feature: testing behat | |
PHP Warning: Missing argument 1 for FeatureContext::__construct() in /Users/serge/www/Orkestro/features/bootstrap/FeatureContext.php on line 20 | |
PHP Stack trace: | |
PHP 1. {main}() /Users/serge/www/Orkestro/vendor/behat/behat/bin/behat:0 | |
PHP 2. Symfony\Component\Console\Application->run() /Users/serge/www/Orkestro/vendor/behat/behat/bin/behat:31 | |
PHP 3. Behat\Testwork\Cli\Application->doRun() /Users/serge/www/Orkestro/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:121 | |
PHP 4. Symfony\Component\Console\Application->doRun() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Testwork/Cli/Application.php:102 | |
PHP 5. Symfony\Component\Console\Application->doRunCommand() /Users/serge/www/Orkestro/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:191 | |
PHP 6. Symfony\Component\Console\Command\Command->run() /Users/serge/www/Orkestro/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:893 | |
PHP 7. Behat\Testwork\Cli\Command->execute() /Users/serge/www/Orkestro/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:245 | |
PHP 8. Behat\Testwork\Tester\Cli\ExerciseController->execute() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Testwork/Cli/Command.php:63 | |
PHP 9. Behat\Testwork\Tester\Cli\ExerciseController->testSpecifications() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Testwork/Tester/Cli/ExerciseController.php:108 | |
PHP 10. Behat\Testwork\EventDispatcher\Tester\EventDispatchingExercise->test() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Testwork/Tester/Cli/ExerciseController.php:146 | |
PHP 11. Behat\Testwork\Tester\Runtime\RuntimeExercise->test() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Testwork/EventDispatcher/Tester/EventDispatchingExercise.php:70 | |
PHP 12. Behat\Testwork\EventDispatcher\Tester\EventDispatchingSuiteTester->test() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Testwork/Tester/Runtime/RuntimeExercise.php:71 | |
PHP 13. Behat\Testwork\Hook\Tester\HookableSuiteTester->test() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Testwork/EventDispatcher/Tester/EventDispatchingSuiteTester.php:72 | |
PHP 14. Behat\Testwork\Tester\Runtime\RuntimeSuiteTester->test() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Testwork/Hook/Tester/HookableSuiteTester.php:73 | |
PHP 15. Behat\Behat\EventDispatcher\Tester\EventDispatchingFeatureTester->test() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Testwork/Tester/Runtime/RuntimeSuiteTester.php:63 | |
PHP 16. Behat\Behat\Hook\Tester\HookableFeatureTester->test() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Behat/EventDispatcher/Tester/EventDispatchingFeatureTester.php:71 | |
PHP 17. Behat\Behat\Tester\Runtime\RuntimeFeatureTester->test() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Behat/Hook/Tester/HookableFeatureTester.php:72 | |
PHP 18. Behat\Testwork\Environment\EnvironmentManager->isolateEnvironment() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Behat/Tester/Runtime/RuntimeFeatureTester.php:78 | |
PHP 19. Behat\Behat\Context\Environment\Handler\ContextEnvironmentHandler->isolateEnvironment() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Testwork/Environment/EnvironmentManager.php:93 | |
PHP 20. Behat\Behat\Context\ContextFactory->createContext() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Behat/Context/Environment/Handler/ContextEnvironmentHandler.php:104 | |
PHP 21. Behat\Behat\Context\ContextFactory->createInstance() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Behat/Context/ContextFactory.php:80 | |
PHP 22. ReflectionClass->newInstance() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Behat/Context/ContextFactory.php:123 | |
PHP 23. FeatureContext->__construct() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Behat/Context/ContextFactory.php:123 | |
Warning: Missing argument 1 for FeatureContext::__construct() in /Users/serge/www/Orkestro/features/bootstrap/FeatureContext.php on line 20 | |
Call Stack: | |
0.0005 231768 1. {main}() /Users/serge/www/Orkestro/vendor/behat/behat/bin/behat:0 | |
0.0156 2317984 2. Symfony\Component\Console\Application->run() /Users/serge/www/Orkestro/vendor/behat/behat/bin/behat:31 | |
0.0181 2648472 3. Behat\Testwork\Cli\Application->doRun() /Users/serge/www/Orkestro/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:121 | |
0.2284 13550440 4. Symfony\Component\Console\Application->doRun() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Testwork/Cli/Application.php:102 | |
0.2285 13551512 5. Symfony\Component\Console\Application->doRunCommand() /Users/serge/www/Orkestro/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:191 | |
0.2285 13551744 6. Symfony\Component\Console\Command\Command->run() /Users/serge/www/Orkestro/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:893 | |
0.2287 13554344 7. Behat\Testwork\Cli\Command->execute() /Users/serge/www/Orkestro/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:245 | |
0.2295 13634912 8. Behat\Testwork\Tester\Cli\ExerciseController->execute() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Testwork/Cli/Command.php:63 | |
0.2303 13701384 9. Behat\Testwork\Tester\Cli\ExerciseController->testSpecifications() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Testwork/Tester/Cli/ExerciseController.php:108 | |
0.2311 13742808 10. Behat\Testwork\EventDispatcher\Tester\EventDispatchingExercise->test() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Testwork/Tester/Cli/ExerciseController.php:146 | |
0.2311 13743040 11. Behat\Testwork\Tester\Runtime\RuntimeExercise->test() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Testwork/EventDispatcher/Tester/EventDispatchingExercise.php:70 | |
0.2336 13879800 12. Behat\Testwork\EventDispatcher\Tester\EventDispatchingSuiteTester->test() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Testwork/Tester/Runtime/RuntimeExercise.php:71 | |
0.2336 13879848 13. Behat\Testwork\Hook\Tester\HookableSuiteTester->test() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Testwork/EventDispatcher/Tester/EventDispatchingSuiteTester.php:72 | |
0.2336 13880016 14. Behat\Testwork\Tester\Runtime\RuntimeSuiteTester->test() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Testwork/Hook/Tester/HookableSuiteTester.php:73 | |
0.2356 14009640 15. Behat\Behat\EventDispatcher\Tester\EventDispatchingFeatureTester->test() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Testwork/Tester/Runtime/RuntimeSuiteTester.php:63 | |
0.2356 14009688 16. Behat\Behat\Hook\Tester\HookableFeatureTester->test() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Behat/EventDispatcher/Tester/EventDispatchingFeatureTester.php:71 | |
0.2356 14009896 17. Behat\Behat\Tester\Runtime\RuntimeFeatureTester->test() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Behat/Hook/Tester/HookableFeatureTester.php:72 | |
0.2356 14010152 18. Behat\Testwork\Environment\EnvironmentManager->isolateEnvironment() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Behat/Tester/Runtime/RuntimeFeatureTester.php:78 | |
0.2356 14010320 19. Behat\Behat\Context\Environment\Handler\ContextEnvironmentHandler->isolateEnvironment() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Testwork/Environment/EnvironmentManager.php:93 | |
0.2358 14029200 20. Behat\Behat\Context\ContextFactory->createContext() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Behat/Context/Environment/Handler/ContextEnvironmentHandler.php:104 | |
0.2359 14029792 21. Behat\Behat\Context\ContextFactory->createInstance() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Behat/Context/ContextFactory.php:80 | |
0.2359 14029840 22. ReflectionClass->newInstance() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Behat/Context/ContextFactory.php:123 | |
0.2359 14029888 23. FeatureContext->__construct() /Users/serge/www/Orkestro/vendor/behat/behat/src/Behat/Behat/Context/ContextFactory.php:123 | |
Scenario: hello # src/Orkestro/Bundle/LocaleBundle/Features/test.feature:2 | |
Given: I am testing symfony2 extension for behat | |
No scenarios | |
No steps | |
0m0.03s (13.70Mb) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment