Exemple #1
0
 /**
  * @covers ::__construct
  * @covers ::getType
  * @covers ::setType
  */
 public function testSetType()
 {
     $variable = new Variable();
     $this->assertEquals(new Type(Type::TYPE_UNKNOWN), $variable->getType());
     $variable->setType(new Type(Type::TYPE_LONG));
     $this->assertEquals(new Type(Type::TYPE_LONG), $variable->getType());
 }