Skip to content

Commit

Permalink
Merged pull request zetacomponents#6
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Feb 17, 2019
2 parents c5a6da6 + e51a818 commit 46bbe10
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 10 deletions.
20 changes: 20 additions & 0 deletions .travis.yml
@@ -0,0 +1,20 @@
language: php

php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- nightly

matrix:
allow_failures:
- php: nightly

before_script:
- composer self-update
- composer update

script:
- vendor/bin/phpunit
6 changes: 3 additions & 3 deletions src/constraint/image.php
Expand Up @@ -30,7 +30,7 @@
* @package UnitTest
* @version //autogentag//
*/
class ezcTestConstraintSimilarImage extends PHPUnit_Framework_Constraint
class ezcTestConstraintSimilarImage extends PHPUnit\Framework\Constraint
{
/**
* Filename of the image to compare against.
Expand Down Expand Up @@ -152,7 +152,7 @@ public function evaluate( $other, $description = '', $returnResult = false )
* @param string $description A string with extra description of what was
* going on while the evaluation failed.
* @param boolean $not Flag to indicate negation.
* @throws PHPUnit_Framework_ExpectationFailedException
* @throws PHPUnit\Framework\ExpectationFailedException
*/
public function fail( $other, $description, SebastianBergmann\Comparator\ComparisonFailure $comparisonFailure = NULL )
{
Expand All @@ -166,7 +166,7 @@ public function fail( $other, $description, SebastianBergmann\Comparator\Compari
$failureDescription = $description . "\n" . $failureDescription;
}

throw new PHPUnit_Framework_ExpectationFailedException(
throw new PHPUnit\Framework\ExpectationFailedException(
$failureDescription,
$comparisonFailure
);
Expand Down
8 changes: 4 additions & 4 deletions src/regression_suite.php
Expand Up @@ -27,7 +27,7 @@
/**
* @package UnitTest
*/
class ezcTestRegressionSuite extends PHPUnit_Framework_TestSuite
class ezcTestRegressionSuite extends PHPUnit\Framework\TestSuite
{
public function __construct( $theClass = '', $name = '' )
{
Expand Down Expand Up @@ -77,7 +77,7 @@ public function __construct( $theClass = '', $name = '' )
!$constructor->isPublic() )
{
$this->addTest(
new PHPUnit_Framework_Warning(
new PHPUnit\Framework\Warning(
sprintf(
'Class "%s" has no public constructor.',
$theClass->getName()
Expand All @@ -94,7 +94,7 @@ public function __construct( $theClass = '', $name = '' )
&& !$theClass->isSubclassOf( 'ezcTestRegressionTest' ) )
{
$this->addTest(
new PHPUnit_Framework_Warning(
new PHPUnit\Framework\Warning(
sprintf(
'Class "%s" is not a subclass of ezcTestRegressionTest.',
$theClass->getName()
Expand All @@ -115,7 +115,7 @@ public function __construct( $theClass = '', $name = '' )
if ( empty( $tests ) )
{
$this->addTest(
new PHPUnit_Framework_Warning(
new PHPUnit\Framework\Warning(
sprintf(
'No regression tests found in class "%s".',
$theClass->getName()
Expand Down
4 changes: 2 additions & 2 deletions src/regression_test.php
Expand Up @@ -129,7 +129,7 @@ public function runTest()
{
if ( $this->currentFile === false )
{
throw new PHPUnit_Framework_ExpectationFailedException( "No currentFile set for test " . __CLASS__ );
throw new PHPUnit\Framework\ExpectationFailedException( "No currentFile set for test " . __CLASS__ );
}

$exception = null;
Expand All @@ -155,7 +155,7 @@ public function runTest()

public static function suite()
{
return new PHPUnit_Framework_TestSuite( __CLASS__ );
return new PHPUnit\Framework\TestSuite( __CLASS__ );
}
}
?>
2 changes: 1 addition & 1 deletion src/test/case.php
Expand Up @@ -30,7 +30,7 @@
* @package UnitTest
* @version //autogentag//
*/
abstract class ezcTestCase extends PHPUnit_Framework_TestCase
abstract class ezcTestCase extends PHPUnit\Framework\TestCase
{
/**
* Do not mess with the temp dir, otherwise the removeTempDirectory might
Expand Down

0 comments on commit 46bbe10

Please sign in to comment.