PHPackages                             davedevelopment/dspec - 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. davedevelopment/dspec

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

davedevelopment/dspec
=====================

A BDD spec style testing tool for PHP 5.3

12383[3 issues](https://github.com/davedevelopment/dspec/issues)PHP

Since Nov 7Pushed 8y ago1 watchersCompare

[ Source](https://github.com/davedevelopment/dspec)[ Packagist](https://packagist.org/packages/davedevelopment/dspec)[ RSS](/packages/davedevelopment-dspec/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

dspec
=====

[](#dspec)

[![Build Status](https://camo.githubusercontent.com/f07c1b07bfc83b7a8a670f2e10ffce674e6fc43c2b2247a2a3cc4c0eedcc669a/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f64617665646576656c6f706d656e742f64737065632e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/davedevelopment/dspec)

`dspec` is a BDD style testing tool for PHP 5.3. It's a little flaky. It's meant to be like the awesome [mocha](https://mochajs.org/), but obviously not that good. There aren't any matchers, I use [Hamcrest](http://code.google.com/p/hamcrest/source/browse/trunk/hamcrest-php/)for the that, if you want mocks and stubs, use [Mockery](http://github.com/padraic/mockery).

For more info, see the [Documentation](https://www.relishapp.com/davedevelopment/dspec/docs).

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

[](#installation)

The only documented way to install `dspec` is with [Composer](http://getcomposer.org)

```
$ composer.phar require --dev davedevelopment/dspec:*
```

Usage
-----

[](#usage)

Create a Spec file

```
