| Total Complexity | 4 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | trait FileStateExpectations { |
||
| 14 | abstract public function isExist(); |
||
| 15 | |||
| 16 | abstract public function isNotExist(); |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @return $this |
||
| 20 | */ |
||
| 21 | public function isReadable() { |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return $this |
||
| 31 | */ |
||
| 32 | public function isNotReadable() { |
||
| 33 | $this->isExist(); |
||
| 34 | $this->startStep('is not readable') |
||
| 35 | ->assertNotIsReadable(); |
||
| 36 | |||
| 37 | return $this; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return $this |
||
| 42 | */ |
||
| 43 | public function isWritable() { |
||
| 44 | $this->isExist(); |
||
| 45 | $this->startStep('is writable') |
||
| 46 | ->assertIsWritable(); |
||
| 47 | |||
| 48 | return $this; |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return $this |
||
| 53 | */ |
||
| 54 | public function isNotWritable() { |
||
| 60 | } |
||
| 61 | } |