for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PHPKitchen\CodeSpecsCore\Expectation\Mixin;
/**
* Represents a common file expectations that being used in both file and directory matchers.
*
* @method \PHPKitchen\CodeSpecsCore\Expectation\Internal\Assert startStep($stepName)
* @package PHPKitchen\CodeSpecsCore\Matchers\Mixins
* @author Dmitry Kolodko <[email protected]>
*/
trait FileStateExpectations {
abstract public function isExist();
abstract public function isNotExist();
* @return $this
public function isReadable() {
$this->isExist();
$this->startStep('is readable')
->assertIsReadable();
return $this;
}
public function isNotReadable() {
$this->startStep('is not readable')
->assertNotIsReadable();
public function isWritable() {
$this->startStep('is writable')
->assertIsWritable();
public function isNotWritable() {
$this->startStep('is not writable')
->assertNotIsWritable();