for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PHPKitchen\CodeSpecsCore\Expectation\Matcher;
/**
* BooleanMatcher is designed to check given boolean variable matches expectation.
*
* @package PHPKitchen\CodeSpecsCore\Expectation
* @author Dmitry Kolodko <[email protected]>
*/
class BooleanMatcher extends ValueMatcher {
* @return $this
public function isTrue() {
$this->startStep('is true')
->assertTrue();
return $this;
}
public function isNotTrue() {
$this->startStep('is not true')
->assertNotTrue();
public function isFalse() {
$this->startStep('is false')
->assertFalse();
public function isNotFalse() {
$this->startStep('is not false')
->assertNotFalse();