Example #1
0
 public function testEntityGetters()
 {
     $file = new File(array('path' => '/home', 'name' => 'Test.txt', 'ext' => 'txt', 'size' => 27, 'mode' => '0666', 'dir' => false));
     $this->assertEquals('/home', $file->getPath());
     $this->assertEquals('Test.txt', $file->getName());
     $this->assertEquals('txt', $file->getExtension());
     $this->assertEquals(27, $file->getSize());
     $this->assertEquals('0666', $file->getMode());
     $this->assertFalse($file->isDir());
     $this->assertEquals('/home/Test.txt', $file);
 }