PHPackages                             herrera-io/phpunit-test-case - 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. herrera-io/phpunit-test-case

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

herrera-io/phpunit-test-case
============================

A PHPUnit test case class with additional functionality.

1.2.1(13y ago)15.5k20MITPHPPHP &gt;=5.3.3

Since Jan 19Pushed 13y agoCompare

[ Source](https://github.com/kherge-archive/php-phpunit-testcase)[ Packagist](https://packagist.org/packages/herrera-io/phpunit-test-case)[ Docs](http://herrera-io.github.com/php-phpunit-testcase)[ RSS](/packages/herrera-io-phpunit-test-case/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (5)Used By (20)

PHPUnit TestCase
================

[](#phpunit-testcase)

[![Build Status](https://camo.githubusercontent.com/e5b38925c47cbd9637588a5fa7d1a38a8cc7df794cd0db5c07f75a9f5ce47d91/68747470733a2f2f7472617669732d63692e6f72672f686572726572612d696f2f7068702d706870756e69742d74657374636173652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/herrera-io/php-phpunit-testcase)

A PHPUnit test case class and trait with additional functionality.

Summary
-------

[](#summary)

The `TestCase` class and `Extras` trait provide additional methods for performing basic, repetitive tasks such as:

- creating and deleting temporary files and directories
- calling protected and private methods
- retrieving and setting protected and private properties

> **NOTE** Both `TestCase` and `Extras` are identical, except the former being a class and the latter being a trait.

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

[](#installation)

Add it to your list of Composer dependencies:

```
$ composer require herrera-io/phpunit-test-case=1.*
```

Usage
-----

[](#usage)

### The `TestCase` class

[](#the-testcase-class)

```
