Skip to content

Commit d2d282c

Browse files
authored
Merge pull request #2 from peter279k/test_enhancement
Test enhancement
2 parents e71c6ef + 9a34ce5 commit d2d282c

File tree

5 files changed

+45
-35
lines changed

5 files changed

+45
-35
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ php:
33
- 5.6
44
- 7.0
55
- 7.1
6+
- 7.2
7+
- nightly
8+
matrix:
9+
allow_failures:
10+
- php: nightly
611
before_script:
712
- composer self-update
813
- composer install

composer.json

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,42 @@
55
"bazzline",
66
"psr",
77
"psr-4",
8-
"php",
9-
"php56",
10-
"php7",
11-
"component",
12-
"filesystem",
13-
"easy",
14-
"csv",
15-
"easycsv",
16-
"adapter",
17-
"read",
18-
"write",
19-
"lgpl",
20-
"filter",
21-
"import",
22-
"export",
23-
"headline",
24-
"invoke",
25-
"tranversable",
26-
"iterator",
27-
"reusable",
28-
"free as in freedom",
29-
"low",
30-
"memory",
8+
"php",
9+
"php56",
10+
"php7",
11+
"component",
12+
"filesystem",
13+
"easy",
14+
"csv",
15+
"easycsv",
16+
"adapter",
17+
"read",
18+
"write",
19+
"lgpl",
20+
"filter",
21+
"import",
22+
"export",
23+
"headline",
24+
"invoke",
25+
"tranversable",
26+
"iterator",
27+
"reusable",
28+
"free as in freedom",
29+
"low",
30+
"memory",
3131
"usage"
3232
],
3333
"type": "library",
3434
"require": {
35-
"net_bazzline/php_component_cli_readline": "1.3.*",
36-
"net_bazzline/php_component_generic_agreement": "1.0.*",
37-
"net_bazzline/php_component_toolbox": ">=1.3",
38-
"php": "^5.6||^7.0"
35+
"net_bazzline/php_component_cli_readline": "^1.2",
36+
"net_bazzline/php_component_generic_agreement": "^1.0",
37+
"net_bazzline/php_component_toolbox": "^1.3",
38+
"php": ">=5.6"
3939
},
4040
"require-dev": {
41-
"mikey179/vfsstream": "1.6.*",
42-
"mockery/mockery": "0.9.*",
43-
"phpunit/phpunit": "5.7.*"
41+
"mikey179/vfsstream": "^1.6",
42+
"mockery/mockery": "^0.9",
43+
"phpunit/phpunit": "^5.7 || ^6.5"
4444
},
4545
"license": "LGPL-3.0",
4646
"authors": [

phpunit.xml.dist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,9 @@
1414
<directory>test/</directory>
1515
</testsuite>
1616
</testsuites>
17+
<filter>
18+
<whitelist>
19+
<directory suffix=".php">source</directory>
20+
</whitelist>
21+
</filter>
1722
</phpunit>

test/AbstractTestCase.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* @author stev leibelt <[email protected]>
4-
* @since 2015-04-24
4+
* @since 2015-04-24
55
*/
66

77
namespace Test\Net\Bazzline\Component\Csv;
@@ -19,9 +19,9 @@
1919
use Net\Bazzline\Component\Csv\Writer\WriterInterface;
2020
use Net\Bazzline\Component\GenericAgreement\Data\FilterableInterface;
2121
use org\bovigo\vfs\vfsStream;
22-
use PHPUnit_Framework_TestCase;
22+
use PHPUnit\Framework\TestCase;
2323

24-
abstract class AbstractTestCase extends PHPUnit_Framework_TestCase
24+
abstract class AbstractTestCase extends TestCase
2525
{
2626
/** @var FilteredReaderFactory */
2727
private $filteredReaderFactory;

test/EasyCsvReaderAdapterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* @author stev leibelt <[email protected]>
4-
* @since 2015-05-17
4+
* @since 2015-05-17
55
*/
66

77
namespace Test\Net\Bazzline\Component\Csv;
@@ -47,7 +47,7 @@ public function testGetHeaders(EasyCsvReaderAdapter $reader)
4747
"column1",
4848
"column2",
4949
"column3"
50-
],
50+
],
5151
$reader->getHeaders()
5252
);
5353
}

0 commit comments

Comments
 (0)