Download the PHP package bravesheep/phpspec-extra-matchers without Composer
On this page you can find all versions of the php package bravesheep/phpspec-extra-matchers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download bravesheep/phpspec-extra-matchers
More information about bravesheep/phpspec-extra-matchers
Files in bravesheep/phpspec-extra-matchers
Download bravesheep/phpspec-extra-matchers
More information about bravesheep/phpspec-extra-matchers
Files in bravesheep/phpspec-extra-matchers
Vendor bravesheep
Package phpspec-extra-matchers
Short Description Extra matchers for phpspec
License MIT
Package phpspec-extra-matchers
Short Description Extra matchers for phpspec
License MIT
Please rate this library. Is it a good library?
Informations about the package phpspec-extra-matchers
Extra phpspec matchers
bravesheep/phpspec-extra-matchers
contains several extra matchers for phpspec, they are explained below:
ContainStringMatcher
: This matcher addscontainString(substr)
orcontain(substr)
for strings. When given a substring of the subject they match.FalseMatcher
: AddsbeFalse()
, equivalent tobe(false)
.MaximumEqualMatcher
: AddsbeAtMost(number)
, which matches when the subject is less than or equal to the expected value (i.e. the<=
operator).MaximumMatcher
: AddsbeLessThan(number)
, which matches when the subject is less than the expected value (i.e. the<
operator).MinimumEqualMatcher
: AddsbeAtLeast(number)
, which matches when the subject is equal to or greater than the expected value (i.e. the>=
operator').MinimumMatcher
: AddsbeMoreThan(number)
, matches when the subject is greater than the expected value (i.e. the>
operator').NullMatcher
: AddsbeNull()
, equivalent tobe(null)
.TrueMatcher
: AddsbeTrue()
, equivalent tobe(true)
.
Additionally some matchers specific in a mink context are available:
Mink\CookieExistanceMatcher
: addshaveCookie(name)
, which matches forBehat\Mink\Session
objects if a cookie was set in the session.Mink\ElementExistanceMatcher
: addsmatchElement(selector, locator)
,haveElement(selector, locator)
,haveMatchingElement(selector, locator)
andcontainElement(selector, locator)
, and works onBehat\Mink\Element\ElementInterface
instances. They match ifelement->has(selector, locator)
returns true.Mink\RegexUrlMatcher
: addsmatchAddress(path)
andmatchUrl(path)
which match if the regex matches the path, it works onBehat\Mink\Session
subjects.Mink\UrlMatcher
: addshaveAddress(path)
,haveUrl(path)
,beAtAddress(path)
andbeAtUrl(path)
, matches if the current url is at the indicated path. It works onBehat\Mink\Session
subjects.Mink\StatusCodeMatcher
: addshaveStatusCode(code)
and matches forBehat\Mink\Session
subjects on the status code.Mink\TextMatcher
: addscontainText(string)
and matches forBehat\Mink\Element\ElementInterface
subjects if their text contains the expected string.
All versions of phpspec-extra-matchers with dependencies
PHP Build Version
Package Version
The package bravesheep/phpspec-extra-matchers contains the following files
Loading the files please wait ....