Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Unit testing packages
  • I'm getting an error: Class 'InfusedPay\Processor' not found in PKGPATH/infusedpay/tests/processor.php on line 24. I have all classes with proper namespace declarations, loaded them in the packages bootstrap.php file properly and added the namespace to core namespace. Any ideas why my tests can't see them?
  • Thanks man this helped me!
  • I think I found out that you have to call \Package::load('your_package_under_test') in the setUp() function. I assume autoloading it would also allow it to show up. Also if your using the @expectedException tag make sure you include the full name of the exception even if you have a namespace declared in your test i.e. \Package_name\Exception_name

Howdy, Stranger!

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

In this Discussion