DirectoryMatcher::isNotExist()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
1
<?php
2
3
namespace PHPKitchen\CodeSpecs\Expectation\Matcher;
4
5
use PHPKitchen\CodeSpecs\Expectation\Matcher\Base\Matcher;
6
use PHPKitchen\CodeSpecs\Expectation\Mixin\FileStateExpectations;
7
8
/**
9
 * DirectoryMatcher is designed to check given directory matches expectation.
10
 *
11
 * @author Dima Kolodko <[email protected]>
12
 */
13
class DirectoryMatcher extends Matcher {
14
    use FileStateExpectations;
15
16
    /**
17
     * @return $this
18
     */
19
    public function isExist() {
20
        $this->startStep('is exist')
21
             ->assertDirectoryExists();
22
23
        return $this;
24
    }
25
26
    /**
27
     * @return $this
28
     */
29
    public function isNotExist() {
30
        $this->startStep('is not exist')
31
             ->assertDirectoryNotExists();
32
33
        return $this;
34
    }
35
}