public function testExceptionThrownWhenUndefinedConstUsed()
{
$this->expectException(UnableToCompileNode::class);
$this->expectExceptionMessage('Constant "FOO" has not been defined');
(new CompileNodeToValue())->__invoke(new ConstFetch(new Name('FOO')), $this->getDummyContext());
}