setName() public method

This will also be persisted to the upsteam line and annotation.
public setName ( string $name )
$name string
Example #1
0
 /**
  * @dataProvider provideNameCases
  */
 public function testName($expected, $new, $input)
 {
     $tag = new Tag(new Line($input));
     $this->assertSame($expected, $tag->getName());
     if ('other' === $expected) {
         $this->setExpectedException('RuntimeException', 'Cannot set name on unknown tag');
     }
     $tag->setName($new);
     $this->assertSame($new, $tag->getName());
 }