public function testPartialFilesCanBeCreated() { $file = new FacebookFile($this->testFile, 14, 5); $fileContents = $file->getContents(); $this->assertEquals('is a text file', $fileContents); }
public function testCanOpenAndReadAndCloseAFile() { $file = new FacebookFile($this->testFile); $fileContents = $file->getContents(); $this->assertEquals('This is a text file used for testing. Let\'s dance.', $fileContents); }