upgrade dependencies (php7)
This commit is contained in:
parent
af0c45c6bc
commit
cd43e2fed9
|
@ -15,8 +15,8 @@
|
||||||
},
|
},
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.6.0",
|
"php": "^7.1.3",
|
||||||
"symfony/validator": "3.*",
|
"symfony/validator": "^4",
|
||||||
"deblan/csv": "v2.0.*"
|
"deblan/csv": "v2.0.*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
convertWarningsToExceptions = "true"
|
convertWarningsToExceptions = "true"
|
||||||
processIsolation = "false"
|
processIsolation = "false"
|
||||||
stopOnFailure = "false"
|
stopOnFailure = "false"
|
||||||
syntaxCheck = "true"
|
|
||||||
bootstrap = "vendor/autoload.php" >
|
bootstrap = "vendor/autoload.php" >
|
||||||
|
|
||||||
<testsuites>
|
<testsuites>
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* class ExampleTest.
|
* class ExampleTest.
|
||||||
*
|
*
|
||||||
* @author Simon Vieille <simon@deblan.fr>
|
* @author Simon Vieille <simon@deblan.fr>
|
||||||
*/
|
*/
|
||||||
class ExampleTest extends \PHPUnit_Framework_TestCase
|
class ExampleTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testExemple()
|
public function testExemple()
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,18 +1,19 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Deblan\Csv\CsvParser;
|
use Deblan\Csv\CsvParser;
|
||||||
use Deblan\CsvValidator\Validator;
|
use Deblan\CsvValidator\Validator;
|
||||||
use Symfony\Component\Validator\Validation;
|
use Symfony\Component\Validator\Validation;
|
||||||
use Symfony\Component\Validator\Constraints\NotBlank;
|
use Symfony\Component\Validator\Constraints\NotBlank;
|
||||||
use Symfony\Component\Validator\Constraints\Email;
|
use Symfony\Component\Validator\Constraints\Email;
|
||||||
|
|
||||||
class ValidatorTest extends \PHPUnit_Framework_TestCase
|
class ValidatorTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testViolation()
|
public function testViolation()
|
||||||
{
|
{
|
||||||
$parser = $this->generateParser('example.csv');
|
$parser = $this->generateParser('example.csv');
|
||||||
$validator = $this->generateValidator($parser);
|
$validator = $this->generateValidator($parser);
|
||||||
$this->setExpectedException('\RuntimeException');
|
$this->expectException('\RuntimeException');
|
||||||
$validator->isValid();
|
$validator->isValid();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Validator\ConstraintViolation;
|
use Symfony\Component\Validator\ConstraintViolation;
|
||||||
use Deblan\CsvValidator\Violation;
|
use Deblan\CsvValidator\Violation;
|
||||||
|
|
||||||
class ViolationTest extends \PHPUnit_Framework_TestCase
|
class ViolationTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testViolation()
|
public function testViolation()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue