Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix tests

  • Loading branch information...
commit d2305888a603938d1b3be2d904352312d7fd7b67 1 parent 0130458
@romainneutron romainneutron authored
Showing with 6 additions and 7 deletions.
  1. +5 −5 Rakefile
  2. +1 −2  tests/Imagine/Issues/Issue67Test.php
View
10 Rakefile
@@ -55,9 +55,9 @@ task :test do
puts "Travis CI"
system "sudo apt-get install -y imagemagick libtiff-dev libjpeg-dev libdjvulibre-dev libwmf-dev libmagickcore-dev libmagickwand-dev"
- system "wget http://pecl.php.net/get/imagick-3.0.1.tgz"
- system "tar -xzf imagick-3.0.1.tgz"
- system "sh -c \"cd imagick-3.0.1 && phpize && ./configure --with-imagick=/usr/local && make && sudo make install\""
+ system "wget http://pecl.php.net/get/imagick-3.1.0RC2.tgz"
+ system "tar -xzf imagick-3.1.0RC2.tgz"
+ system "sh -c \"cd imagick-3.1.0RC2 && phpize && ./configure --with-imagick=/usr/local && make && sudo make install\""
system "sudo apt-get install -y graphicsmagick libgraphicsmagick1-dev"
@@ -81,7 +81,7 @@ task :test do
exitcode = 1 unless system "phpunit tests/"
puts "testing with imagick enabled"
-
+
File.open(ini_file, "w") do |f|
f.write(original_ini_contents)
f.write(<<-INI.unindent)
@@ -196,4 +196,4 @@ task :release, :version do |t, args|
system "git tag v#{version} -m \"release v#{version}\""
system "git push"
system "git push --tags"
-end
+end
View
3  tests/Imagine/Issues/Issue67Test.php
@@ -9,7 +9,6 @@
class Issue67Test extends \PHPUnit_Framework_TestCase
{
-
private function getImagine()
{
try {
@@ -31,6 +30,6 @@ public function testShouldThrowExceptionNotError()
$imagine = $this->getImagine();
$imagine->open('tests/Imagine/Fixtures/large.jpg')
- ->save($invalidPath . 'myfile.jpg');
+ ->save($invalidPath . '/myfile.jpg');
}
}

0 comments on commit d230588

Please sign in to comment.
Something went wrong with that request. Please try again.