diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..990a451 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +.PHONY: tests + +tests: + phpunit diff --git a/composer.json b/composer.json index 4e561ff..5b8f1c4 100644 --- a/composer.json +++ b/composer.json @@ -15,8 +15,8 @@ }, "minimum-stability": "dev", "require": { - "php": ">=5.6.0", - "symfony/validator": "3.*", + "php": "^7.1.3", + "symfony/validator": "^4", "deblan/csv": "v2.0.*" } } diff --git a/phpunit.xml b/phpunit.xml index 4f465be..eb8c372 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -7,7 +7,6 @@ convertWarningsToExceptions = "true" processIsolation = "false" stopOnFailure = "false" - syntaxCheck = "true" bootstrap = "vendor/autoload.php" > diff --git a/tests/ExampleTest.php b/tests/ExampleTest.php index 4d0705f..0be5792 100644 --- a/tests/ExampleTest.php +++ b/tests/ExampleTest.php @@ -1,11 +1,13 @@ */ -class ExampleTest extends \PHPUnit_Framework_TestCase +class ExampleTest extends TestCase { public function testExemple() { diff --git a/tests/ValidatorTest.php b/tests/ValidatorTest.php index f3d75ac..13d6462 100644 --- a/tests/ValidatorTest.php +++ b/tests/ValidatorTest.php @@ -1,18 +1,19 @@ generateParser('example.csv'); $validator = $this->generateValidator($parser); - $this->setExpectedException('\RuntimeException'); + $this->expectException('\RuntimeException'); $validator->isValid(); } diff --git a/tests/ViolationTest.php b/tests/ViolationTest.php index 1fd0484..c798ab4 100644 --- a/tests/ViolationTest.php +++ b/tests/ViolationTest.php @@ -1,9 +1,10 @@