PHPackages                             greys/wc-subscriptions-tests - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. greys/wc-subscriptions-tests

ActiveLibrary[Testing &amp; Quality](/categories/testing)

greys/wc-subscriptions-tests
============================

PHPUnit test framework and helpers for WooCommerce Subscriptions extensions

1.0.0(7mo ago)014MITPHPPHP &gt;=7.4

Since Oct 4Pushed 7mo agoCompare

[ Source](https://github.com/jgreys/wc-subscriptions-tests)[ Packagist](https://packagist.org/packages/greys/wc-subscriptions-tests)[ RSS](/packages/greys-wc-subscriptions-tests/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

WooCommerce Subscriptions PHPUnit Framework
===========================================

[](#woocommerce-subscriptions-phpunit-framework)

A comprehensive PHPUnit testing framework for WooCommerce Subscriptions extensions. This package provides test helpers, mock classes, and assertion traits to make testing WooCommerce Subscriptions functionality easier and more reliable.

Features
--------

[](#features)

- 🎯 **Complete Test Suite**: Base test case class with subscription-specific functionality
- 🛠️ **Helper Classes**: Create subscriptions, renewal orders, and recurring carts easily
- 🎭 **Mock Objects**: Full mock implementations when WC Subscriptions isn't available
- ✅ **Custom Assertions**: Subscription-specific assertion methods
- 📦 **Easy Integration**: Works seamlessly with existing WooCommerce test setups

Requirements
------------

[](#requirements)

- PHP &gt;= 7.4
- PHPUnit ^9.6
- WooCommerce PHPUnit Framework (`greys/woocommerce-phpunit-framework`)
- WordPress Test Suite

Installation
------------

[](#installation)

```
composer require --dev greys/woocommerce-subscriptions-phpunit-framework
```

Quick Start
-----------

[](#quick-start)

### 1. Extend the Base Test Case

[](#1-extend-the-base-test-case)

```
