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
16 changes: 8 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ language: php
php:
# using major version aliases

# aliased to 5.2.17
- 5.2
# aliased to 5.3.29
- 5.3
# aliased to a recent 5.4.x version
- 5.4
# aliased to a recent 5.5.x version
- 5.5
# aliased to a recent 5.6.x version
- 5.6
# aliased to a recent 7.x version
# aliased to a recent 7.0.x version
- 7.0
# aliased to a recent 7.1.x version
- 7.1
# aliased to a recent 7.2.x version
- 7.2
# aliased to a recent nightly build
- nightly
# aliased to a recent hhvm version
- hhvm

Expand All @@ -31,7 +31,7 @@ matrix:
- php: hhvm
env: DB=pgsql # PDO driver for pgsql is unsupported by HHVM (3rd party install for support)
allow_failures:
- php: 7.0
- php: 5.5
- php: hhvm

# execute any number of scripts before the test run, custom env's are available as variables
Expand Down
3 changes: 1 addition & 2 deletions Tests/HelloWorldTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

class HelloWorldTest extends PHPUnit_Framework_TestCase
class HelloWorldTest extends \PHPUnit\Framework\TestCase
{
/**
* @var PDO
Expand Down Expand Up @@ -44,4 +44,3 @@ public function testWhat()
$this->assertEquals('Bar', $helloWorld->what());
}
}

6 changes: 6 additions & 0 deletions Tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

function loader($class)
{
// Support for pre-PHP 5.6 versions
if ($class === 'PHPUnit\Framework\TestCase') {
class_alias('PHPUnit_Framework_TestCase', '\PHPUnit\Framework\TestCase');

return;
}
$file = $class . '.php';
if (file_exists($file)) {
require $file;
Expand Down