diff --git a/tests/Symfony/Tests/Component/HttpFoundation/File/MimeType/MimeTypeTest.php b/tests/Symfony/Tests/Component/HttpFoundation/File/MimeType/MimeTypeTest.php index b8810db067..ea83c73c59 100644 --- a/tests/Symfony/Tests/Component/HttpFoundation/File/MimeType/MimeTypeTest.php +++ b/tests/Symfony/Tests/Component/HttpFoundation/File/MimeType/MimeTypeTest.php @@ -79,6 +79,10 @@ class MimeTypeTest extends \PHPUnit_Framework_TestCase $this->markTestSkipped('Can not verify chmod operations on Windows'); } + if (in_array(get_current_user(), array('root'))) { + $this->markTestSkipped('This test will fail if run under superuser'); + } + $path = __DIR__.'/../Fixtures/to_delete'; touch($path); chmod($path, 0333); diff --git a/tests/Symfony/Tests/Component/Translation/Loader/ResourceBundleLoaderTest.php b/tests/Symfony/Tests/Component/Translation/Loader/ResourceBundleLoaderTest.php index ea1f67fb73..78f371c0dc 100644 --- a/tests/Symfony/Tests/Component/Translation/Loader/ResourceBundleLoaderTest.php +++ b/tests/Symfony/Tests/Component/Translation/Loader/ResourceBundleLoaderTest.php @@ -19,6 +19,7 @@ class ResourceBundleFileLoaderTest extends LocalizedTestCase { public function testLoad() { + // resource is build using genrb command $loader = new ResourceBundleLoader(); $resource = __DIR__.'/../fixtures/resourcebundle/res'; $catalogue = $loader->load($resource, 'en', 'domain1'); @@ -30,6 +31,9 @@ class ResourceBundleFileLoaderTest extends LocalizedTestCase public function testDatEnglishLoad() { + // bundled resource is build using pkgdata command which at leas in ICU 4.2 comes in extremely! buggy form + // you must specify an temporary build directory which is not the same as current directory and + // MUST reside on the same partition. pkgdata -p resources -T /srv -d . packagelist.txt $loader = new ResourceBundleLoader(); $resource = __DIR__.'/../fixtures/resourcebundle/dat/resources'; $catalogue = $loader->load($resource, 'en', 'domain1'); diff --git a/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/dat/en.res b/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/dat/en.res new file mode 100644 index 0000000000..1fc1436d66 Binary files /dev/null and b/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/dat/en.res differ diff --git a/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/dat/fr.res b/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/dat/fr.res new file mode 100644 index 0000000000..f58416094b Binary files /dev/null and b/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/dat/fr.res differ diff --git a/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/dat/packagelist.txt b/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/dat/packagelist.txt new file mode 100644 index 0000000000..c5783ed431 --- /dev/null +++ b/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/dat/packagelist.txt @@ -0,0 +1,2 @@ +en.res +fr.res diff --git a/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/dat/resources.dat b/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/dat/resources.dat index b8b5b2bc5e..563b0eaef2 100644 Binary files a/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/dat/resources.dat and b/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/dat/resources.dat differ diff --git a/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/res/en.res b/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/res/en.res index ed962ca285..ad894a92be 100644 Binary files a/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/res/en.res and b/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/res/en.res differ