fonsecas72 / assert-unicade
Unicade - one place for all your assertions
Installs: 41 983
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 0
Requires (Dev)
- beberlei/assert: ~2.3
- behat/mink: ~1.6
- behat/mink-goutte-driver: ~1.0
- phpunit/phpunit: ~4.5
- webmozart/assert: 1.0.0-beta
This package is not auto-updated.
Last update: 2024-11-23 18:01:42 UTC
README
One single way to call assertions
Installation
composer require --dev fonsecas72/assert-unicade dev-master
Usage
PHPUnit Assert Facade
\UnicadeAssert\Useup::phpunit()->assertTrue(true);
Beberlei Assert Facade
\UnicadeAssert\Useup::beberlei()->digit('1');
Webmozart Assert Facade
\UnicadeAssert\Useup::webmozart()->startsWith('fooBar', 'foo');
WebAssert Wrapper
\UnicadeAssert\Useup::webAssert($mink)->pageTextContains('text')
Custom Asserts
\UnicadeAssert\Useup::webAssert($mink)->elementIsVisible('xpath', 'xpath');