tiger-seo / PhpBuiltinServer

Codeception extension for starting and stopping php built-in server
38 stars 35 forks source link

Unable to use with Yii2 framework... #22

Closed davidjeddy closed 7 years ago

davidjeddy commented 8 years ago

Config:

extensions:
    enabled:
        - Codeception\Extension\PhpBuiltinServer
    config:
        Codeception\Extension\PhpBuiltinServer:
            hostname: localhost
            port: 8080
            documentRoot: ../../../../
            startDelay: 1
            phpIni: /etc/php.ini

Error:

[Tue Nov 17 21:18:50 2015] ::1:49193 [404]: /index-test.php/user/auth/login - No such file or directory
[Tue Nov 17 21:18:51 2015] ::1:49194 [404]: /index-test.php/user/auth/login - No such file or directory
[Tue Nov 17 21:18:51 2015] ::1:49195 [404]: /index-test.php/user/auth/login - No such file or directory
[Tue Nov 17 21:18:51 2015] ::1:49196 [404]: /index-test.php/user/auth/login - No such file or directory

Output:

localhost yii2testapp.dev]$ codecept build -c ./protected/yii2testapp/tests/ && codecept run acceptance aProfileBuilderModuleCest -c ./protected/yii2testapp/tests/ --coverage --coverage-xml --coverage-html
Building Actor classes for suites: acceptance, functional, unit
 -> AcceptanceTesterActions.php generated successfully. 0 methods added
\AcceptanceTester includes modules: PhpBrowser, Db
 -> FunctionalTesterActions.php generated successfully. 0 methods added
\FunctionalTester includes modules: Filesystem, Yii2, Db
 -> UnitTesterActions.php generated successfully. 0 methods added
\UnitTester includes modules: Asserts, Db, Yii2
Codeception PHP Testing Framework v2.1.4
Powered by PHPUnit 4.8.18 by Sebastian Bergmann and contributors.

Acceptance Tests (4) -----------------------------------------------------------------------------------------------------------------------------------------
Enable module (aProfileBuilderModuleCest::enableModule)                                                                                                 Fail
Initial population (aProfileBuilderModuleCest::initialPopulation)                                                                                       Fail
Add requirements (aProfileBuilderModuleCest::addRequirements)                                                                                           Fail
Check invalid form (aProfileBuilderModuleCest::checkInvalidForm)                                                                                        Fail
--------------------------------------------------------------------------------------------------------------------------------------------------------------
...
etc
davidjeddy commented 8 years ago

Checking back in, any movement?

davidjeddy commented 7 years ago

Was configuration issue with document root

    Codeception\Extension\PhpBuiltinServer:
        hostname: localhost
        port: 8080
        documentRoot: {path to base of application}