From 788f32ac93b10046cf18cd4700dd595a55536bb4 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 10 Sep 2016 11:38:52 +0200 Subject: [PATCH] Allow running test suite with osx tar, fixes #5662 --- tests/Composer/Test/Downloader/XzDownloaderTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Composer/Test/Downloader/XzDownloaderTest.php b/tests/Composer/Test/Downloader/XzDownloaderTest.php index d8e77a2cb..ba81cdaaf 100644 --- a/tests/Composer/Test/Downloader/XzDownloaderTest.php +++ b/tests/Composer/Test/Downloader/XzDownloaderTest.php @@ -72,7 +72,7 @@ class XzDownloaderTest extends TestCase $downloader->download($packageMock, $this->getUniqueTmpDirectory()); $this->fail('Download of invalid tarball should throw an exception'); } catch (\RuntimeException $e) { - $this->assertContains('File format not recognized', $e->getMessage()); + $this->assertRegexp('/(File format not recognized|Unrecognized archive format)/i', $e->getMessage()); } } }