PHPackages                             habanero/spectre - 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. habanero/spectre

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

habanero/spectre
================

Simple spec-testing tools

v0.3.7(2y ago)650412MITPHPPHP &gt;=5.3.4

Since Aug 29Pushed 2y ago3 watchersCompare

[ Source](https://github.com/hbnro/spectre)[ Packagist](https://packagist.org/packages/habanero/spectre)[ RSS](/packages/habanero-spectre/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (4)Versions (18)Used By (2)

Spectre
=======

[](#spectre)

Aims to write-and-run your specs in a easy way. Quickly.

- Mock support for classes and functions\*
- Code-coverage reporting with PHPUnit
- Don't struggle with classes!
- Save as TAP or JSON
- Watch mode

[![CI](https://github.com/hbnro/spectre/actions/workflows/ci.yml/badge.svg)](https://github.com/hbnro/spectre/actions)

How to?
-------

[](#how-to)

**composer.json**

```
{
  "require-dev": {
    "habanero/spectre": "v0.2.0"
  }
}
```

**inc/sum.php**

```
