小编Abi*_*ina的帖子

如何在 wampserver 中安装 php 8?

我正在尝试在 wampserver 中安装 PHP 8,并且按照 wampserver 官方论坛中的教程进行操作,但 PHP 8 不起作用。它显示以下错误。

This PHP version 8.0.2 doesn't seem to be compatible with your actual Apache Version.

c:/wamp64/bin/php/php8.0.2/php8apache2_4.dll does not exist.
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个问题并在 wampaserver 中安装 php8? 在此输入图像描述

信息

  • Windows 10 内部版本 19042
  • wamp服务器3.2.3
  • 阿帕奇2.4.46
  • mysql 8.0.21

这是我下载php8的页面https://windows.php.net/qa/

这是我正在使用的教程http://forum.wampserver.com/read.php?2,159568

php wampserver

12
推荐指数
1
解决办法
4万
查看次数

在 flutter 中测试 kIsWeb 常量

在我的代码中我有一个lookup方法:

查找.dart

Future<http.Response> httpLookup(String address) {
    return kIsWeb
        ? _httpClient.get(address)
        : _httpClient.get(
            Uri.https(address, ''),
          );
  }
Run Code Online (Sandbox Code Playgroud)

kIsWeb在单元测试期间如何测试常量?这是我到目前为止所尝试过的,但报道并未进行。

Lookup_test.dart

@TestOn('browser')
void main (){
test('shoud test lookup', () {
    InternetLookup lookup = InternetLookup();
    when(mockInternetLookup.httpLookup(any))
        .thenAnswer((realInvocation) async => http.Response('success', 200));
    lookup.httpLookup('www.google.com');
  });
}
Run Code Online (Sandbox Code Playgroud)

unit-testing dart flutter

6
推荐指数
1
解决办法
1717
查看次数

标签 统计

dart ×1

flutter ×1

php ×1

unit-testing ×1

wampserver ×1