Skip to content

Commit

Permalink
reenable tests now pecl is updated
Browse files Browse the repository at this point in the history
and add a changelog note
  • Loading branch information
jcupitt committed Nov 23, 2017
1 parent 818aba2 commit fc415b0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 13 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# Changelog
All notable changes to `:vips` will be documented in this file.

## 1.0.3-dev - 2017-06-06
## 1.0.3 - 2017-06-06

### Added
- add Image::newInterpolator() [Kleis Auke Wolthuizen]
- implement array access interface [John Cupitt]
- add BlendMode and Image::composite [John Cupitt]
- add Config::version() [John Cupitt]
- add Image::newFromMemory() / Image::writeToMemory() [Kleis Auke Wolthuizen]

### Deprecated
- Nothing
Expand Down
4 changes: 0 additions & 4 deletions tests/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,8 @@ public function testVipsConcurrencySet()

public function testVipsVersion()
{
/* We can't test this on travis until we update the ext in pecl.
*
$version = Vips\Config::version();
$this->assertEquals(preg_match("/\d+\.\d+\.\d+/", $version), 1);
*
*/
}
}

Expand Down
4 changes: 0 additions & 4 deletions tests/ConvenienceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,12 @@ public function testVipsBandsplit()

public function testVipsComposite()
{
/* Enable this when we have vips_version() in pecl
*
if (version_compare(Vips\Config::version(), '8.6.0') >= 0) {
$overlay = $this->image->add(20)->bandjoin(128);
$overlay = $overlay->cast(Vips\BandFormat::UCHAR);
$comp = $this->image->composite($overlay, Vips\BlendMode::OVER);
$this->assertEquals($comp->getpoint(0, 0)[0], $this->pixel[0] + 10);
}
*
*/
}

public function testVipsAddConst()
Expand Down
4 changes: 2 additions & 2 deletions tests/NewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@ public function testVipsNewInterpolator()

public function testVipsNewFromMemory()
{
/*$binaryStr = pack('C*', ...array_fill(0, 200, 0));
$binaryStr = pack('C*', ...array_fill(0, 200, 0));
$image = Vips\Image::newFromMemory($binaryStr, 20, 10, 1, Vips\BandFormat::UCHAR);

$this->assertEquals($image->width, 20);
$this->assertEquals($image->height, 10);
$this->assertEquals($image->format, Vips\BandFormat::UCHAR);
$this->assertEquals($image->bands, 1);
$this->assertEquals($image->avg(), 0);*/
$this->assertEquals($image->avg(), 0);
}
}

Expand Down
4 changes: 2 additions & 2 deletions tests/WriteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ public function testVipsWriteToBuffer()

public function testVipsWriteToMemory()
{
/*$binaryStr = pack('C*', ...array_fill(0, 200, 0));
$binaryStr = pack('C*', ...array_fill(0, 200, 0));
$image = Vips\Image::newFromMemory($binaryStr, 20, 10, 1, Vips\BandFormat::UCHAR);
$memStr = $image->writeToMemory();

$this->assertEquals($binaryStr, $memStr);*/
$this->assertEquals($binaryStr, $memStr);
}
}

Expand Down

0 comments on commit fc415b0

Please sign in to comment.