/**
* Tests that pointcut can be registered and accessed
*/
public function testPointcutCanBeRegisteredAndReceived()
{
$pointcut = $this->getMock(Pointcut::class);
$this->container->registerPointcut($pointcut, 'test');
$this->assertSame($pointcut, $this->container->getPointcut('test'));
// Verify that tag is working
$pointcuts = $this->container->getByTag('pointcut');
$this->assertSame(array('pointcut.test' => $pointcut), $pointcuts);
}