Example #1
0
 public function testTypes()
 {
     $this->assertTrue(Directory::create('') instanceof Directory);
     $this->assertTrue(File::create('') instanceof File);
     $this->assertTrue(FileDescriptor::create('') instanceof FileDescriptor);
     $this->assertTrue(is_string(File::create('/path/to/dir')->getPathname()));
     $this->assertTrue(is_string(Directory::create(new Path('/path/to/dir'))->getPathname()));
     $this->assertTrue(is_string(FileDescriptor::create(new Text('/path/to/dir'))->getPathname()));
 }