Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
<?php

require __DIR__ . '/../../../../boris-loader.php';
\Boris\Loader\Loader::load($boris, array(new \Boris\Loader\Test\Provider\Thrower()));