Skip to content

Commit

Permalink
Skip tests if bcmath isn't installed.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jan 30, 2015
1 parent be41483 commit 4519eba
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions framework/Compress/test/Horde/Compress/TnefTest.php
Expand Up @@ -32,6 +32,9 @@ public function testItipReply()

public function testvTodo()
{
if (!extension_loaded('bcmath')) {
$this->markTestSkipped('bcmath not available.');
}
$tnef = Horde_Compress::factory('Tnef');
$data = base64_decode(file_get_contents(__DIR__ . '/fixtures/tnef_vnote'));
try {
Expand All @@ -47,6 +50,9 @@ public function testvTodo()

public function testMeetingInvitation()
{
if (!extension_loaded('bcmath')) {
$this->markTestSkipped('bcmath not available.');
}
$tnef = Horde_Compress::factory('Tnef');
$data = base64_decode(file_get_contents(__DIR__ . '/fixtures/TnefMeetingRequest.txt'));
try {
Expand All @@ -65,6 +71,9 @@ public function testMeetingInvitation()

public function testMeetingTnef()
{
if (!extension_loaded('bcmath')) {
$this->markTestSkipped('bcmath not available.');
}
$winmail = file_get_contents(__DIR__ . '/fixtures/winmail2.dat');
$tnef = Horde_Compress::factory('Tnef');
$tnef_data = $tnef->decompress($winmail);
Expand Down

0 comments on commit 4519eba

Please sign in to comment.