2017 © Pedro PelĂĄez
 

library phpspec-matcher-extension

image

coduo/phpspec-matcher-extension

  • Monday, September 15, 2014
  • by norzechowicz
  • Repository
  • 2 Watchers
  • 7 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PHPSpec2 coduo matcher extension

This extension integrate Coduo PHP Matcher into PHPSpec, (*1)

Installation

Add to your composer.json, (*2)

require: {
   "coduo/phpspec-matcher-extension": "dev-master"
}

Usage

Configure phpspec, (*3)

# phpspec.yml
extensions:
  - Coduo\PhpSpec\Matcher\Extension

Write spec:, (*4)

<?php

namespace spec\Coduo;

use PhpSpec\ObjectBehavior;

class UserSpec extends ObjectBehavior
{
    function it_always_have_salt()
    {
        $this->getSalt()->shouldMatchPattern('@string@');
        $this->getSalt()->shouldNotMatchPattern('@integer@');
    }
}

From now you should be able to use additional matcher matchPattern in PHPSpec., (*5)

The Versions

15/09 2014

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

by Norbert Orzechowicz

extension phpspec coduo matcher