| | 281 | |
|---|
| | 282 | /** |
|---|
| | 283 | * assert is_dir() returns correct result |
|---|
| | 284 | */ |
|---|
| | 285 | public function testIs_dir() |
|---|
| | 286 | { |
|---|
| | 287 | $this->assertTrue(is_dir($this->fooURL)); |
|---|
| | 288 | $this->assertTrue(is_dir($this->barURL)); |
|---|
| | 289 | $this->assertFalse(is_dir($this->baz1URL)); |
|---|
| | 290 | $this->assertFalse(is_dir($this->baz2URL)); |
|---|
| | 291 | $this->assertFalse(is_dir($this->fooURL . '/another')); |
|---|
| | 292 | $this->assertFalse(is_dir(vfsStream::url('another'))); |
|---|
| | 293 | } |
|---|
| | 294 | |
|---|
| | 295 | /** |
|---|
| | 296 | * assert is_file() returns correct result |
|---|
| | 297 | */ |
|---|
| | 298 | public function testIs_file() |
|---|
| | 299 | { |
|---|
| | 300 | $this->assertFalse(is_file($this->fooURL)); |
|---|
| | 301 | $this->assertFalse(is_file($this->barURL)); |
|---|
| | 302 | $this->assertTrue(is_file($this->baz1URL)); |
|---|
| | 303 | $this->assertTrue(is_file($this->baz2URL)); |
|---|
| | 304 | $this->assertFalse(is_readable($this->fooURL . '/another')); |
|---|
| | 305 | $this->assertFalse(is_readable(vfsStream::url('another'))); |
|---|
| | 306 | } |
|---|