Ejemplo n.º 1
0
 /**
  * SRR files can include their own Stored File blocks, and we should be able
  * to extract their file contents.
  */
 public function testExtractsStoredFiles()
 {
     $srr = new SrrInfo();
     $srr->open($this->fixturesDir . '/utf8_filename_added.srr');
     $stored = $srr->getStoredFiles();
     $this->assertCount(1, $stored);
     $this->assertSame(65, $stored[0]['size']);
     $this->assertSame('Κείμενο στην ελληνική γλώσσα.txt', $stored[0]['name']);
     $this->assertSame("Κείμενο στην ελληνική γλώσσα\nGreek text\n", $stored[0]['data']);
 }