public function testUsedVariableCastOperator() { $var = 'hi'; $this->assertEvaluatesTo(function () use($var) { (bool) $var; }, true); }