I'm running Fuel 1.5, using the 1.5 orm package to run my models. I implemented a controller test in app/tests/controller, but when I tried to run my test with php oil test, I get the following error:
$ php oil test
[...]
Tests Running...This may take a few moments.
[...]
PHP Fatal error: Access level to Fuel\Core\Model_Crud::primary_key() must be public (as in class Orm\Model) in /[...]/fuel/core/classes/model/crud.php on line 15
PHP Stack trace:[...]
Trying to debug it, I went into /fuel/core/classes/model/crud.php (Model_Crud). I noticed that when I change 'extends \Model' to 'extends Model', my unit tests work as expected.
It seems that Fuel is deciding somewhere in the Fuel/Core namespace that '\Model' maps to orm\Model instead of Fuel/Core/Model. Is there a way I can fix this and run my unit tests without editing core code?