Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    nolka
    @nolka
    @tupikoff Which framework you use?
    i have the same problem in Yii2 advanced
    Tupikov Alexandr
    @tupikoff
    @nolka without frameworks.
    @nolka The solution is to wrap needed global class. For example make:
    <?php
    
    namespace myProject\Core;
    
    use DateTimeZone;
    
    class DateTime extends \DateTime
    {
        public function __construct($time = 'now', DateTimeZone $timezone = null)
        {
            return parent::__construct($time, $timezone);
        }
    }
    Martin Gold
    @martingold
    I do not mean to be disprespectful but could somebody explain to me why Codeception generates Tester Action traits instead of including them as regular traits? I am just curious :)
    Boris
    @boriskrutskih
    Hi all, how i can attach screenshot to failed tests? i User Codeception + Allure Reporter
    chadtomkiss-tbp
    @chadtomkiss-tbp

    Hey buds,

    Has anyone had an issue where Doctrine cascades are not persisting? Having an issue where cascadePersist is called properly in the browser, but not in a codeception test

    C. Leo
    @cswdi_gitlab
    does anyone have experience with AspectMock? how good is it? and will it be maintained in the future so that I can rely on updates?
    Diana-Olaru
    @dianaolaru
    hi, does anybody know something about this error: PHP Fatal error: Uncaught Error: Call to undefined method Dotenv\Dotenv::create() in /home/diana/integration-automation/integration-automation/vendor/codeception/codeception/src/Codeception/Lib/ParamsLoader.php:118
    I just updated codeception to codeception/codeception 2.5.x-dev and , indeed, the create() method does not exist ... :-/
    Gintautas Miselis
    @Naktibalda
    We moved to Slack at least a year ago: https://codeception.slack.com/
    Diana-Olaru
    @dianaolaru
    oh, great! thank you! :D
    Ben Ahmed
    @Marouenne_gitlab
    Hello friends,
    i'm new to use codeception for participants test, so i have to share data between steps .... i don't know how to do this ?? any one can help me.....
    thank you
    Winston Nolan
    @WinstonN
    hello :wave:
    Boris
    @boriskrutskih
    Hi, all. I have a problem to genarete report codeception + rest + allure. Can somebody help me?
    Mickaƫl PERRIN
    @mickaelperrin
    Hi all, I am currently using codeception with the wp-browser module to test a WordPress plugin I develop. I am currently facing a test scenario that I am not able to implement. My plugin use an external service through a rest api provided by a php library. I would like to simulate an exception as the answer of the API call. Would you mind giving me some hints on how I could mock 1 method of that external library to ensure it throws an Exception ? I have seen some PECL extensions like https://github.com/krakjoe/uopz but I would prefer to have a much cleaner solution. Any hints ?
    Mark Harrison
    @yourpropertyexpert
    I use drone.io as my CI platform. I've got it working with Codeception... Do you want some notes for https://codeception.com/docs/12-ContinuousIntegration ?
    [The readme on github talks about docs being in the repo, but the link from the readme just 404s.]
    Slava Abakumov
    @slaFFik
    @yourpropertyexpert I would love to read droneCI + Codeception integration
    Mark Harrison
    @yourpropertyexpert
    Mark Harrison
    @yourpropertyexpert
    Note that it just uses webdriver - I'm currently trying to get phantom-js running in a multi-docker container way :-)
    Tanvir Mohammad Ismail
    @tanvirismail
    i use jira xray testing tool. so how to i generate codeception report result for the jira xray tool
    Konstantinos Togias
    @ktogias
    hi
    I try to create a mock that overrides a protected method called by constructor and then call the constructor, but the overrifded method seems to always return false ingnoring the value I provide in construct args.
    Here is the class i try to test: https://pastebin.com/sa8wzS1B
    and here the test: https://pastebin.com/JEw6WkeZ
    Running the test I get error: [Status\Exception\UnknownStatusCodeException] Unknown code: acode
    While I expected codeIsKnown() to return true as I have configured my mock and the exception to not be thrown by constructor
    Am I missing something?
    quan3c10
    @quan3c10

    Exception trace:
    () at phar:///var/www/codeception/codecept.phar/src/Codeception/Configuration.php:323
    Codeception\Configuration::createModule() at phar:///var/www/codeception/codecept.phar/src/Codeception/Configuration.php:287
    Codeception\Configuration::modules() at phar:///var/www/codeception/codecept.phar/src/Codeception/SuiteManager.php:68
    Codeception\SuiteManager->initializeModules() at phar:///var/www/codeception/codecept.phar/src/Codeception/SuiteManager.php:60
    Codeception\SuiteManager->initialize() at phar:///var/www/codeception/codecept.phar/src/Codeception/Codecept.php:149
    Codeception\Codecept->runSuite() at phar:///var/www/codeception/codecept.phar/src/Codeception/Codecept.php:134
    Codeception\Codecept->run() at phar:///var/www/codeception/codecept.phar/src/Codeception/Command/Run.php:261
    Codeception\Command\Run->runSuites() at phar:///var/www/codeception/codecept.phar/src/Codeception/Command/Run.php:190
    Codeception\Command\Run->execute() at phar:///var/www/codeception/codecept.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:252
    Symfony\Component\Console\Command\Command->run() at phar:///var/www/codeception/codecept.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:874
    Symfony\Component\Console\Application->doRunCommand() at phar:///var/www/codeception/codecept.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:195
    Symfony\Component\Console\Application->doRun() at phar:///var/www/codeception/codecept.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:126
    Symfony\Component\Console\Application->run() at phar:///var/www/codeception/codecept.phar/codecept:34
    require_once() at /var/www/codeception/codecept.phar:7

    I got the same problem when trying to call the Appium PHP client into my Module, any help?

    @atayahmet
    Douglas Melo Oliveira
    @DougDMO
    Hi !
    when i use attachfile.. return:
    Facebook\WebDriver\Exception\UnrecognizedExceptionException: invalid argument: 'text' is empty
    @Naktibalda
    Rostislav Rudometov
    @rostislaw9
    Hey mates!
    Used to run tests inside the same docker container with the project itself using composer to install Codeception, having configs for 4.1.1 tag at the moment, but I want to use your image from Docker hub to run tests in a separate container.
    Now I'm against the choice: to wait for Codeception 4 image on Docker hub or to make my own image using composer.
    So the question is: when should I expect Codeception 4 image on Docker hub?
    Seems like the latest Docker hub image is 3.0.3
    Mark Harrison
    @yourpropertyexpert
    @rostislaw9 - as it happens, I'm building a dockerhub image for codeception4 this afternoon.
    Sadly, it's a world of pain.
    I raised this on the official issues list 5 weeks ago, and still no reply.
    If I succeed, I'll let you know.
    Mark Harrison
    @yourpropertyexpert
    This includes:
    "codeception/codeception": "^4.0",
    "codeception/module-phpbrowser": "^1.0.0",
    "codeception/module-asserts": "^1.0.0",
    "codeception/module-webdriver": "^1.0.0"
    Mark Harrison
    @yourpropertyexpert
    I've added the full details to the existing github issues....
    ... hopefully it will save the CodeCeption team time in getting the dockerhub image updated :-)
    Jimmy B.
    @jimmybrancaccio
    Ooooh.
    Mark, you're awesome.
    Wait so the Codeception image here (https://hub.docker.com/r/codeception/codeception) uses 3.x ?
    Jimmy B.
    @jimmybrancaccio
    Because of this I think in their composer.json - "codeception/stub": "^2.0 | ^3.0" ?
    Rostislav Rudometov
    @rostislaw9

    Wait so the Codeception image here (https://hub.docker.com/r/codeception/codeception) uses 3.x ?

    yup, that's the exact problem i was talking 'bout