Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler\ProfilerPassTest::testTemplateNoIdThrowsException PHP Method

testTemplateNoIdThrowsException() public method

Thus, a fully-valid tag looks something like this:
    public function testTemplateNoIdThrowsException()
    {
        // one service, with a template key, but no id
        $services = array('my_collector_service' => array(0 => array('template' => 'foo')));
        $builder = $this->createContainerMock($services);
        $this->setExpectedException('InvalidArgumentException');
        $profilerPass = new ProfilerPass();
        $profilerPass->process($builder);
    }