for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PHPKitchen\CodeSpecs\Expectation\Matcher;
use PHPKitchen\CodeSpecs\Expectation\Matcher\Base\Matcher;
use PHPKitchen\CodeSpecs\Expectation\Mixin\FileStateExpectations;
/**
* DirectoryMatcher is designed to check given directory matches expectation.
*
* @author Dima Kolodko <[email protected]>
*/
class DirectoryMatcher extends Matcher {
use FileStateExpectations;
* @return $this
public function isExist() {
$this->startStep('is exist')
->assertDirectoryExists();
return $this;
}
public function isNotExist() {
$this->startStep('is not exist')
->assertDirectoryNotExists();