public it_should_know_task_metadata ( Symfony\Component\DependencyInjection\ContainerInterface $container ) | ||
$container | Symfony\Component\DependencyInjection\ContainerInterface |
function it_should_know_task_metadata(ContainerInterface $container)
{
$container->getParameter('grumphp.tasks.metadata')->willReturn(['phpspec' => []]);
$this->getTaskMetadata('phpspec')->shouldReturn([]);
$this->shouldThrow(RuntimeException::class)->duringGetTaskMetadata('phpunit');
}