File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2
2
$ I = new WebGuy ($ scenario );
3
3
$ I ->wantTo ('call friend with steps to ask expert work ' );
4
4
$ I ->amOnPage ('/info ' );
5
- $ john = $ I ->haveFriend ('john ' , '\WebGuy\RootWatcherSteps ' );
6
- $ john ->does (function (WebGuy \RootWatcherSteps $ I ) {
5
+ $ john = $ I ->haveFriend ('john ' , '\WebGuy\Steps\RootWatcher ' );
6
+ $ john ->does (function (WebGuy \Steps \ RootWatcher $ I ) {
7
7
$ I ->seeInRootPage ('Welcome to test app! ' );
8
8
});
9
9
$ I ->seeInCurrentUrl ('/info ' );
Original file line number Diff line number Diff line change 1
1
<?php
2
2
// Here you can initialize variables that will for your tests
3
3
4
- // \Codeception\Util\Autoload::registerSuffix(' Steps', __DIR__.DIRECTORY_SEPARATOR. '_steps');
4
+ \Codeception \Util \Autoload::addNamespace ( ' WebGuy\ Steps ' , __DIR__ .DIRECTORY_SEPARATOR . '_steps ' );
Original file line number Diff line number Diff line change 1
1
<?php
2
- namespace WebGuy ;
2
+ namespace WebGuy \ Steps ;
3
3
4
- class RootWatcherSteps extends \WebGuy
4
+ class RootWatcher extends \WebGuy
5
5
{
6
6
public function seeInRootPage ($ selector )
7
7
{
You can’t perform that action at this time.
0 commit comments