PHPackages                             phpactor/test-utils - 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. phpactor/test-utils

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

phpactor/test-utils
===================

Utilities for managing the test environment

2.0.0(5mo ago)0391.7k↓46.4%220MITPHPPHP ^8.1CI failing

Since Jan 20Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/phpactor/test-utils)[ Packagist](https://packagist.org/packages/phpactor/test-utils)[ RSS](/packages/phpactor-test-utils/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (15)Used By (20)

Test Utils
==========

[](#test-utils)

Set of general test utilties for Phpactor.

Workspace
---------

[](#workspace)

The `Workspace` class is used to manage a test file workspace.

### Resetting / Creating a workspace

[](#resetting--creating-a-workspace)

```
$workspace = Workspace::create(__DIR__ . '/workspace');
$workspace->reset(); // creates or deletes then creates the workspace directory
```

### Loading test files

[](#loading-test-files)

Load a set of test files from a "manifest":

```
$manifest =
