addFiles([$file]); $compiler->prepareFile($file); $cppFile = $compiler->convertFile($file); $code = file_get_contents($cppFile); $this->assertStringContainsString('if (static_cast(EXPECTED((likely))))', $code); $this->assertStringContainsString( 'if (static_cast(UNEXPECTED((php::toBool(unlikely)))))', $code, ); $this->assertStringNotContainsString('php_expected(', $code); $this->assertStringNotContainsString('php_unexpected(', $code); } }