コード例 #1
0
 public function testHasPluginReturnsFalseWhenPluginIsNotExist()
 {
     $parser = new HaikMarkdown();
     $repository = Mockery::mock('Hokuken\\HaikMarkdown\\Plugin\\Repositories\\PluginRepositoryInterface', function ($mock) {
         $mock->shouldReceive('exists')->andReturn(false);
         return $mock;
     });
     $parser->registerPluginRepository($repository);
     $this->assertFalse($parser->hasPlugin('plugin_not_exist'));
 }