PhpStorm 配置 PHPUnit(基于docker环境与mac)

本文详细介绍了如何在PhpStorm中配置基于Docker的PHPUnit环境,包括目录结构说明、编辑器配置步骤(标识目录资源类型、CLI Interpreter设置、Test Framework配置)、通过composer安装phpunit以及添加phpunit扩展类的方法。
摘要由CSDN通过智能技术生成

一、目录结构

 

  • phpunit.xml:单元测试配置文件
  • tests:存放测试代码目录
  • build:生成测试报告目录
  • tests/bootstrap.php 脚手架入口

phpunit

<?xml version="1.0" encoding="UTF-8"?>

<phpunit bootstrap="tests/bootstrap.php"

         backupGlobals="false"

         backupStaticAttributes="false"

         beStrictAboutCoversAnnotation="true"

         beStrictAboutOutputDuringTests="true"

         beStrictAboutTestsThatDoNotTestAnything="true"

         beStrictAboutTodoAnnotatedTests="true"

         forceCoversAnnotation="true"

         strict="true"

         verbose="true">

    <testsuites>

        <testsuite name="ProjectName">

            <directory suffix=

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值