Ejemplo n.º 1
0
 /**
  * @covers \PHP\Manipulator\Token::setType
  * @covers \PHP\Manipulator\Token::getType
  */
 public function testSetTypeAndGetType()
 {
     $token = new Token('foo');
     $this->assertNull($token->getType(), 'wrong type');
     $fluent = $token->setType(T_ABSTRACT);
     $this->assertSame($fluent, $token, 'No fluent interface');
     $this->assertEquals(T_ABSTRACT, $token->getType(), 'wrong type');
 }