From 02fd5249080b30016d2c3349d7ef4ccce349d964 Mon Sep 17 00:00:00 2001 From: Kevin Archer Date: Mon, 13 May 2013 18:12:22 -0400 Subject: [PATCH] Remove error suppression, add more verbose skip message --- .../Cache/Resolver/AbstractFilesystemResolverTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Tests/Imagine/Cache/Resolver/AbstractFilesystemResolverTest.php b/Tests/Imagine/Cache/Resolver/AbstractFilesystemResolverTest.php index 0feb92aed..d3a4ff3ee 100644 --- a/Tests/Imagine/Cache/Resolver/AbstractFilesystemResolverTest.php +++ b/Tests/Imagine/Cache/Resolver/AbstractFilesystemResolverTest.php @@ -13,13 +13,13 @@ class AbstractFilesystemResolverTest extends AbstractTest { public function testStoreCyrillicFilename() { - $image = $this->fixturesDir.'/assets/АГГЗ.jpeg'; + if (false !== strpos(strtolower(PHP_OS), 'win')) { + $this->markTestSkipped('file_get_contents can not read files with utf-8 file names on windows'); + } - $data = @file_get_contents($image); + $image = $this->fixturesDir.'/assets/АГГЗ.jpeg'; - if (false == $data) { - $this->markTestSkipped('Unable to read the fixture file'); - } + $data = file_get_contents($image); $response = new Response($data, 200, array( 'content-type' => 'image/jpeg',