Skip to content

Commit

Permalink
Remove debug leftovers.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Dec 31, 2014
1 parent fc718b6 commit 9e0aee4
Showing 1 changed file with 23 additions and 18 deletions.
41 changes: 23 additions & 18 deletions framework/Compress/test/Horde/Compress/TnefTest.php
Expand Up @@ -21,16 +21,16 @@ protected function setUp()
}
}

// public function testvNote()
// {
// $tnef = Horde_Compress::factory('Tnef');
// $data = file_get_contents(__DIR__ . '/fixtures/tnef_vnote');
// try {
// $tnef_data = $tnef->decompress($data);
// } catch (Horde_Compress_Exception $e) {
// var_dump($e);
// }
// }
public function testvNote()
{
$tnef = Horde_Compress::factory('Tnef');
$data = file_get_contents(__DIR__ . '/fixtures/tnef_vnote');
try {
$tnef_data = $tnef->decompress($data);
} catch (Horde_Compress_Exception $e) {
var_dump($e);
}
}

public function testMeetingInvitation()
{
Expand All @@ -55,23 +55,28 @@ public function testAttachments()
$data = base64_decode(file_get_contents(__DIR__ . '/fixtures/TnefAttachments.txt'));
$tnef = Horde_Compress::factory('Tnef');
$tnef_data = $tnef->decompress($data);
$this->assertEquals('image', $tnef_data[0]['type'], 'application');
$this->assertEquals('jpeg', $tnef_data[0]['subtype']);
$this->assertEquals('hasselhoff_birthday.jpg', $tnef_data[0]['name']);
$this->assertEquals(80051, $tnef_data[0]['size']);
$this->assertEquals('application', $tnef_data[0]['type']);
$this->assertEquals('rtf', $tnef_data[0]['subtype']);

$this->assertEquals('image', $tnef_data[1]['type']);
$this->assertEquals('jpeg', $tnef_data[1]['subtype']);
$this->assertEquals('hasselhoff_birthday.jpg', $tnef_data[1]['name']);
$this->assertEquals(80051, $tnef_data[1]['size']);
}

public function testMultipleAttachments()
{
$data = base64_decode(file_get_contents(__DIR__ . '/fixtures/TnefAttachmentsMultiple.txt'));
$tnef = Horde_Compress::factory('Tnef');
$tnef_data = $tnef->decompress($data);
$this->assertEquals('image', $tnef_data[0]['type']);
$this->assertEquals('jpeg', $tnef_data[0]['subtype']);
$this->assertEquals('Lighthouse.jpg', $tnef_data[0]['name']);
$this->assertEquals('application', $tnef_data[0]['type']);
$this->assertEquals('rtf', $tnef_data[0]['subtype']);
$this->assertEquals('image', $tnef_data[1]['type']);
$this->assertEquals('jpeg', $tnef_data[1]['subtype']);
$this->assertEquals('Penguins.jpg', $tnef_data[1]['name']);
$this->assertEquals('Lighthouse.jpg', $tnef_data[1]['name']);
$this->assertEquals('image', $tnef_data[2]['type']);
$this->assertEquals('jpeg', $tnef_data[2]['subtype']);
$this->assertEquals('Penguins.jpg', $tnef_data[2]['name']);
}

}

0 comments on commit 9e0aee4

Please sign in to comment.