public function testToAndFromArray() { $fileArray = array('class' => 'default', 'domain' => 'toast', 'fid' => 123, 'file' => $this->getTestFile(), 'key' => 'key', 'paths' => array('http://mypath.com/123.fid'), 'size' => 321); $file = new File($fileArray); $this->assertEquals($fileArray, $file->toArray()); }