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'); }