コード例 #1
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testThrowsWhenLoadedNonExistancePlugin()
 {
     $repository = Mockery::mock('Hokuken\\HaikMarkdown\\Plugin\\Repositories\\PluginRepositoryInterface', function ($mock) {
         $mock->shouldReceive('exists')->andReturn(false);
         return $mock;
     });
     $parser = new HaikMarkdown();
     $parser->registerPluginRepository($repository);
     $parser->loadPlugin('plugin');
 }