PHPackages                             tipowerup/testbench - 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. tipowerup/testbench

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

tipowerup/testbench
===================

Shared testing foundation for TI PowerUp extensions. Provides full Laravel + TastyIgniter context in tests with dual-mode support (host app and standalone CI).

v0.1.1(2mo ago)0391MITPHPPHP ^8.2CI passing

Since Feb 12Pushed 2mo agoCompare

[ Source](https://github.com/tipowerup/testbench)[ Packagist](https://packagist.org/packages/tipowerup/testbench)[ RSS](/packages/tipowerup-testbench/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (3)Used By (1)

TI PowerUp Testbench
====================

[](#ti-powerup-testbench)

Shared testing foundation for [TI PowerUp](https://tipowerup.com) TastyIgniter v4 extensions. Provides full Laravel + TastyIgniter context in tests via [Orchestra Testbench](https://github.com/orchestral/testbench), with zero duplication across extensions.

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

[](#requirements)

- PHP ^8.3
- TastyIgniter Core ^v4.0

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

[](#installation)

```
composer require --dev tipowerup/testbench
```

Setup
-----

[](#setup)

Each extension needs three changes:

### 1. `phpunit.xml.dist`

[](#1-phpunitxmldist)

Point the bootstrap to the testbench:

```

            tests

            src

```

### 2. `tests/TestCase.php`

[](#2-teststestcasephp)

Extend the testbench TestCase and implement the two abstract methods:

```
