Permalink
Browse files

Use same magic.mime for all Travis PHP versions

  • Loading branch information...
1 parent 563df04 commit 26f497d7ebda955cbb6cf617c189335297ae60dc @weierophinney weierophinney committed May 9, 2012
Showing with 2 additions and 4 deletions.
  1. +1 −2 tests/Zend/Validator/File/IsCompressedTest.php
  2. +1 −2 tests/Zend/Validator/File/IsImageTest.php
@@ -40,8 +40,7 @@ class IsCompressedTest extends \PHPUnit_Framework_TestCase
{
protected function getMagicMime()
{
- $travisVersion = getenv('TRAVIS_PHP_VERSION');
- if ($travisVersion === '5.3') {
+ if (false !== getenv('TRAVIS_PHP_VERSION')) {
return __DIR__ . '/_files/magic.lte.5.3.10.mime';
}
@@ -40,8 +40,7 @@ class IsImageTest extends \PHPUnit_Framework_TestCase
{
protected function getMagicMime()
{
- $travisVersion = getenv('TRAVIS_PHP_VERSION');
- if ($travisVersion === '5.3') {
+ if (false !== getenv('TRAVIS_PHP_VERSION')) {
return __DIR__ . '/_files/magic.lte.5.3.10.mime';
}

0 comments on commit 26f497d

Please sign in to comment.