addFiles([$source]); $compiler->prepareFile($source); $generated = $compiler->convertFile($source); $code = file_get_contents($generated); self::assertIsString($code); self::assertStringNotContainsString('php::Variant(number)', $code); self::assertStringContainsString('php::toInt(number)', $code); self::assertStringContainsString('php::toFloat(number)', $code); } }