public function testModifyType() { $variable = new Variable('a', 1, CompiledExpression::INTEGER); static::assertSame(CompiledExpression::INTEGER, $variable->getType()); $newType = CompiledExpression::BOOLEAN; $variable->modifyType($newType); static::assertSame($newType, $variable->getType()); }