File tree Expand file tree Collapse file tree 8 files changed +16
-7
lines changed Expand file tree Collapse file tree 8 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 1
1
language : php
2
2
dist : trusty
3
3
php :
4
+ - " 7.1"
4
5
- " 7.0"
5
6
- " 5.6"
6
7
- " 5.5"
7
8
- " 5.4"
8
- - " hhvm"
9
9
install :
10
10
- sudo apt-get update
11
11
- sudo apt-get install pdftk
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ php-pdftk
5
5
[ ![ Latest Stable Version] ( https://poser.pugx.org/mikehaertl/php-pdftk/v/stable.svg )] ( https://packagist.org/packages/mikehaertl/php-pdftk )
6
6
[ ![ Total Downloads] ( https://poser.pugx.org/mikehaertl/php-pdftk/downloads )] ( https://packagist.org/packages/mikehaertl/php-pdftk )
7
7
[ ![ Latest Unstable Version] ( https://poser.pugx.org/mikehaertl/php-pdftk/v/unstable.svg )] ( https://packagist.org/packages/mikehaertl/php-pdftk )
8
- [ ![ HHVM Status] ( http://hhvm.h4cc.de/badge/yiisoft/yii2-dev.png )] ( http://hhvm.h4cc.de/package/mikehaertl/php-pdftk )
9
8
[ ![ License] ( https://poser.pugx.org/mikehaertl/php-pdftk/license.svg )] ( https://packagist.org/packages/mikehaertl/php-pdftk )
10
9
11
10
A PDF conversion and form utility based on pdftk.
Original file line number Diff line number Diff line change 9
9
processIsolation =" false"
10
10
stopOnFailure =" false"
11
11
syntaxCheck =" false"
12
- bootstrap =" vendor/autoload .php"
12
+ bootstrap =" ./tests/bootstrap .php"
13
13
>
14
14
<testsuites >
15
15
<testsuite name =" phppdftk Test Suite" >
Original file line number Diff line number Diff line change 1
1
<?php
2
2
use mikehaertl \pdftk \Command ;
3
3
4
- class CommandTest extends \PHPUnit_Framework_TestCase
4
+ class CommandTest extends \PHPUnit \ Framework \TestCase
5
5
{
6
6
public function setUp ()
7
7
{
Original file line number Diff line number Diff line change 1
1
<?php
2
2
use mikehaertl \pdftk \FdfFile ;
3
3
4
- class FdfFileTest extends \PHPUnit_Framework_TestCase
4
+ class FdfFileTest extends \PHPUnit \ Framework \TestCase
5
5
{
6
6
public function testFdfFileCreation () {
7
7
$ data = array (
Original file line number Diff line number Diff line change 2
2
use mikehaertl \pdftk \Pdf ;
3
3
use mikehaertl \pdftk \FdfFile ;
4
4
5
- class PdfTest extends \PHPUnit_Framework_TestCase
5
+ class PdfTest extends \PHPUnit \ Framework \TestCase
6
6
{
7
7
public function setUp ()
8
8
{
Original file line number Diff line number Diff line change 1
1
<?php
2
2
use mikehaertl \pdftk \XfdfFile ;
3
3
4
- class XfdfFileTest extends \PHPUnit_Framework_TestCase
4
+ class XfdfFileTest extends \PHPUnit \ Framework \TestCase
5
5
{
6
6
public function testXfdfFileCreation () {
7
7
$ data = array (
Original file line number Diff line number Diff line change
1
+ <?php
2
+ // Some travis environments use phpunit > 6
3
+ $ newClass = '\PHPUnit\Framework\TestCase ' ;
4
+ $ oldClass = '\PHPUnit_Framework_TestCase ' ;
5
+ if (!class_exists ($ newClass ) && class_exists ($ oldClass )) {
6
+ class_alias ($ oldClass , $ newClass );
7
+ }
8
+
9
+ require __DIR__ . '/../vendor/autoload.php ' ;
10
+
You can’t perform that action at this time.
0 commit comments