public function testDefaultProvider() { $boris = M::mock('\\Boris\\Boris'); $boris->shouldReceive('setPrompt')->with('test-works> ')->times(1); $boris->shouldReceive('onStart')->times(1); chdir(__DIR__ . '/Provider/Composer'); \Boris\Loader\Loader::load($boris); }
<?php require __DIR__ . '/../../../../boris-loader.php'; \Boris\Loader\Loader::load($boris, array(new \Boris\Loader\Test\Provider\Thrower()));