public function testTags()
 {
     $outline = new OutlineNode();
     $this->assertFalse($outline->hasTags());
     $this->assertInternalType('array', $outline->getTags());
     $this->assertEquals(0, count($outline->getTags()));
     $outline->setTags($tags = array('tag1', 'tag2'));
     $this->assertEquals($tags, $outline->getTags());
     $outline->addTag('tag3');
     $this->assertEquals(array('tag1', 'tag2', 'tag3'), $outline->getTags());
     $this->assertFalse($outline->hasTag('tag4'));
     $this->assertTrue($outline->hasTag('tag2'));
     $this->assertTrue($outline->hasTag('tag3'));
 }
 protected function outlineExampleEventMock($tag)
 {
     $outline = new OutlineNode();
     $outline->addTag($tag);
     return new OutlineExampleEvent($outline, 0, $this->getMock('Behat\\Behat\\Context\\ContextInterface'));
 }