Directories organization behat -
i have question regarding organization of directories. have following directories:
bootstrap - something1.php - something2.php - something3.php features - something1 -something1.feature - something2 -something2.feature - something3 -something3.feature
i'm working behat , want organize folders follow:
bootstrap - something1 - something1.php - something2 - something2.php - something3 - something3.php features - something1 -something1.feature - something2 -something2.feature - something3 -something3.feature
but don't know why, can't it. behat.yml suites section
suites: something_1_context: paths: [ %paths.base%/features/something1 ] contexts: [ something1 ] something_2_context: paths: [ %paths.base%/features/something2 ] contexts: [ something2 ] something_3_context: paths: [ %paths.base%/features/something3 ] contexts: [ something3 ]
i beginner whether in php or in behat. have noticed problem can solver in php "namespaces". i've tried put namespace in context file follow:
<?php namespace hello\world class myworld extends earth implements sun{ //somefunctions } ?>
and receive time following message:
class 'hello\world\earth' not found in /users/user/desktop/behat/trial/features/bootstrap/something1.php on line 15
what can do? thanks!
Comments
Post a Comment