这里的注意点就是映射目录的配置,是一个坑
注意:Remote Path 是不需要配置的哦!
注意:Remote Path 是不需要配置的哦!
注意:Remote Path 是不需要配置的哦!
注意:Container Path 是不需要配置的哦!
注意:Container Path 是不需要配置的哦!
注意:Container Path 是不需要配置的哦!
composer require --dev phpunit/phpunit
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="tests/bootstrap.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
cacheResult="false">
<testsuites>
<testsuite name="tests">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
</phpunit>
<?php
/**
* @desc bootstrap.php 描述信息
* @author Tinywan(ShaoBo Wan)
* @date 2021/11/9 18:00
*/
use Webman\Bootstrap;
use Webman\Config;
require_once __DIR__ . '/../vendor/autoload.php';
Config::load(config_path(), ['route', 'container']);
if ($timezone = config('app.default_timezone')) {
date_default_timezone_set($timezone);
}
foreach (config('autoload.files', []) as $file) {
include_once $file;
}
foreach (config('bootstrap', []) as $class_name) {
/** @var Bootstrap $class_name */
$class_name::start(null);
}