An open API service indexing awesome lists of open source software.

https://github.com/owox/phpspecamp

PhpSpec matchers to use with Amp Promises
https://github.com/owox/phpspecamp

amp matchers phpspec promises

Last synced: 2 months ago
JSON representation

PhpSpec matchers to use with Amp Promises

Awesome Lists containing this project

README

        

# [PhpSpec](https://github.com/phpspec/phpspec) matchers to use with [Amp](https://github.com/amphp/amp/) Promises

[![Build Status](https://travis-ci.com/OWOX/PhpSpecAmp.svg?branch=master)](https://travis-ci.com/OWOX/PhpSpecAmp)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

## Installation

Install it with:

```bash
composer require owox/phpspec-amp
```

Configure PhpSpec:

```yml
extensions:
OWOX\PhpSpec\Amp\Extension: ~
```

## Usage

Extension provides following matchers:

- `resolveTo`
- `resolveToAnInstance`
- `failWith`