Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@ php:
- 5.5

env:
- CODECEPT_VERSION="1"
- CODECEPT_VERSION="2"

matrix:
exclude:
- php: 5.3
env: CODECEPT_VERSION="2"
- CODECEPT_VERSION="2.2"

before_script:
- printf "\n" | pecl install imagick
Expand Down
12 changes: 12 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "digital-products-fork/codeception-visualception-wpbrowser",
"description": "A module for Codeception to test visual changes on web pages (with WPBrowser suppport via a webdriver parameter on VisualCeption module)",
"homepage": "https://github.com/DigitalProducts/codeception-module-visualception",
"license": "Apache-2.0",
"require": {
"php": ">=5.3.0"
},
"autoload": {
"classmap": ["module/"]
}
}
11 changes: 9 additions & 2 deletions module/ImageDeviationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,26 @@

class ImageDeviationException extends \PHPUnit_Framework_ExpectationFailedException
{
private $failedTest;
private $expectedImage;
private $currentImage;
private $deviationImage;

public function __construct($message, $expectedImage, $currentImage, $deviationImage)
public function __construct($message, $test, $expectedImage, $currentImage, $deviationImage)
{
$this->failedTest = $test;
$this->deviationImage = $deviationImage;
$this->currentImage = $currentImage;
$this->expectedImage = $expectedImage;

parent::__construct($message);
}

public function getFailedTest( )
{
return $this->failedTest;
}

public function getDeviationImage( )
{
return $this->deviationImage;
Expand All @@ -31,4 +38,4 @@ public function getExpectedImage()
{
return $this->expectedImage;
}
}
}
Loading