I have some problems with getting codeception to run properly with my Yii app. I have not yet used the Yii1 module as I am using Selenium with acceptance tests only.
I created a composer.json in my protected/tests directory and installed codeception using composer. Then I created a first acceptance test using
/myYiproject/protected/tests$ ./vendor/codeception/codeception/codecept bootstrap
/myYiproject/protected/tests$ ./vendor/codeception/codeception/codecept generate:cept acceptance registration
/myYiproject/protected/tests$ ./vendor/codeception/codeception/codecept build
Running the tests results in errors that methods cannot be found, so I am assuming some issues with autoloading perhaps.
/myYiproject/protected/tests$ ./vendor/codeception/codeception/codecept run acceptance -d
Codeception PHP Testing Framework v1.8.3
Powered by PHPUnit 3.7.32 by Sebastian Bergmann.
...
1) Failed to see whether i can log in as a client in registrationCept.php
[RuntimeException] Call to undefined method WebGuy::amOnPage
FAILURES!
Tests: 1, Assertions: 0, Errors: 1.
I am using Yii 1.1.14 with Composer 1.0.0-alpha8 (fff913d6de5ec8c4315f466cf203c3e0acc3218a) and Codeception 1.8.3 on Mac OS X. The codeception.yml is located in protected/tests and is definitely used (also it is like the bootstrap generated it). Any help on how to get the web guy recognize his own methods is greatly appreciated