Nemanja Karadzic
  1. <?php
  3. trait FFWD
  4. {
  5. protected function setUp()
  6. {
  7. parent::setUp();
  8. echo "RUNNING!!!!";
  9. }
  10. }
Eduard Ichim

Did you copy paste the trait from somewhere and forgot to remove some namespace declaration or the name of the trait is different from the file?


Yeah I’d expect it to work, as far as I’m aware it does pick up traits…

Eduard Ichim

I don't know why but files shouldn't be picked up from the start... if that is not present


@Nemanja Karadzic Do you have them mapped in composer.json, or are you relying on Silverstripe’s built-in autoloader?