Example #1
0
 /**
  * @covers \PHP\Manipulator\Token::setLinenumber
  * @covers \PHP\Manipulator\Token::getLinenumber
  */
 public function testSetLinenumberAndGetLinenumber()
 {
     $token = new Token('foo');
     $this->assertNull($token->getLinenumber(), 'wrong linenumber');
     $fluent = $token->setLinenumber(10);
     $this->assertSame($fluent, $token, 'No fluent interface');
     $this->assertEquals(10, $token->getLinenumber(), 'wrong linenumber');
 }