dev-master
9999999-dev
MIT
The Requires
- php >=5.3.0
- coduo/php-matcher 1.0.*
- phpspec/phpspec 2.0.*
The Development Requires
by Norbert Orzechowicz
extension phpspec coduo matcher
Wallogit.com
2017 © Pedro PelĂĄez
This extension integrate Coduo PHP Matcher into PHPSpec, (*1)
Add to your composer.json, (*2)
require: {
"coduo/phpspec-matcher-extension": "dev-master"
}
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)
MIT
extension phpspec coduo matcher