Skip to content
This repository has been archived by the owner on Jan 25, 2018. It is now read-only.

consoleLoggingCaptureAspect not injected #26

Closed
mrimann opened this issue Aug 4, 2015 · 3 comments
Closed

consoleLoggingCaptureAspect not injected #26

mrimann opened this issue Aug 4, 2015 · 3 comments

Comments

@mrimann
Copy link
Contributor

mrimann commented Aug 4, 2015

After updating from v2.4.0 to v2.4.1 today, I've ran into the following issue when executing the tests:

PHP Fatal error: Call to a member function disableOutput() on a non-object in /var/www/XYZ/Packages/Application/Flowpack.Behat/Tests/Behat/FlowContext.php on line 99

This happens while resetting the fixtures via a CLI command within the to-be-tested application package which is executed like:

    /**
     * Resets the database and creates some basic data set for testing
     *
     * @BeforeScenario
     */
    public function resetFixtures() {
        $this->flowContext->iRunTheCommand('foo.bar:testing:resetapplicationfortesting');
    }
@hlubek
Copy link
Member

hlubek commented Aug 5, 2015

Hi Mario,

it seems the consoleLoggingCaptureAspect is not correctly initialized because it's injected in the Behat context (which cannot work IMHO). I'll have a look.

@hlubek
Copy link
Member

hlubek commented Aug 5, 2015

Hi Mario,

I justed fixed the step definition in master. Could you check if this fixes your test? If yes, I'd tag a new release.

@mrimann
Copy link
Contributor Author

mrimann commented Aug 5, 2015

Tested and found to be fixed - thanks for the quick fix!

@hlubek hlubek closed this as completed Aug 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants