Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Unit Testing
  • When creating an instance of the Theme class within a model of my application I have no issues.
    When unit testing this same function, the test fails giving the error:

    Trying to get property of non-object

    for this line of code:

    $theme = \Theme::instance('email');


    Any ideas?
  • How exactly do you unit test?
  • I've got PHPUnit running alongside Jenkins.
  • And how do you bootstrap the framework? Because without that, it's not going to work.

    Run your tests through oil instead, so you'll now it's setup correctly.

Howdy, Stranger!

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

In this Discussion