What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hi all, How I can mock a public static method in codeception? πŸ™‚

Posts: 38 πŸ§‘πŸ»β€πŸš€ - Cadet

Hi all, How I can mock a public static method in codeception? πŸ™‚

Welcome!

It looks like you're new here. Sign in or register to get started.

Comments

  • Posts: 546 πŸ§‘πŸ»β€πŸš€ - Cadet

    won't Stub with a class of that method work?

  • Posts: 393 πŸ§‘πŸ»β€πŸš€ - Cadet

    if you have a need for it there might me a code issue behind, like not injecting dependencies

  • Posts: 393 πŸ§‘πŸ»β€πŸš€ - Cadet

    or you are trying to test the behavior of external library and not behavior of your own code

Welcome!

It looks like you're new here. Sign in or register to get started.