elementor/eunit 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

elementor/eunit

Composer 安装命令:

composer require elementor/eunit

包简介

WordPress PHPUnit Testing Library

README 文档

README


Eunit

Make WordPress PHPUnit less painful

Explore the docs »

Report Bug . Request Feature

About The Project

Eunit is a php library to make WordPress PHPUnit less painful. Eunit is a collection of Test cases, common WordPress test helpers, and a few DB helpers to make the developer's life a little easier.

Getting Started

Getting started with Eunit is simple and quick, just make sure you follow this guide.

Installation

Composer

To install Eunit, via composer run the command below, and you will get the latest version

composer require --dev elementor/eunit

then you need to do is make sure to include composer autoloader in your PHPUnit bootstrap.php

// Require composer dependencies.
// Pending on your vendor directory
require_once dirname( dirname( __FILE__ ) ) . '/vendor/autoload.php';

Manually

You can also install Eunit via git,

git clone https://github.com/elementor/eunit.git

Then you need to do is make sure to include Eunit instance in your PHPUnit bootstrap.php

// Require eunit.php
// Pending on your directory structure
require_once dirname( dirname( __FILE__ ) ) . '/eunit/eunit.php';
\Eunit\Eunit::instance();

Configuration

Before actually using Eunit you need to add a few environment variables to you PHPUnit runtime which can be done be editing your phpunit.xml in the element.

EUNIT_TEST_CASE_NAMESPACE should be set to the plugin main namespace

<php>
    <env name="EUNIT_TEST_CASE_NAMESPACE" value="YourMainNamespace">
</php>

All that is left is to start using Eunit, head over to the Docs to learn more.

统计信息

  • 总下载量: 16.56k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 4
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-11-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固