Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
AspectMock integration
  • I try to integrate AspectMock, not an ordinary PHP mocking framework, with FuelPHP.

    https://github.com/Codeception/AspectMock

    But it seems that I have to change some files to integrate it. Because AspectMock requires composer autoloader first and must load Fuel autoloader with the AspectMock method. See bootstrap_phpunit.php in the diff below.

    https://gist.github.com/kenjis/7764670

    I think if I could move "Load in the Autoloader" code like above diff, I can integrate it if I only change bootstrap_phpunit.php.

    Dear Core Developers, do you accept the movement? Or is there something better solution?
  • HarroHarro
    Accepted Answer
    I've discussed it in the team, and we don't see any objections to changing the way the autoloaders are enabled.

    I've made the required changes to the 1.8/develop codebase.

    Obviously, we won't add your composer and phpunit_bootstrap changes, these are specific for your requirements and don't belong in the framework core.
  • Thank you.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion