Browse Source

upgrade dependencies (php7)

tags/v3.0.0^0
Simon Vieille 4 months ago
parent
commit
cd43e2fed9
Signed by: deblan <simon@deblan.fr> GPG Key ID: 03383D15A1D31745
6 changed files with 14 additions and 7 deletions
  1. +4
    -0
      Makefile
  2. +2
    -2
      composer.json
  3. +0
    -1
      phpunit.xml
  4. +3
    -1
      tests/ExampleTest.php
  5. +3
    -2
      tests/ValidatorTest.php
  6. +2
    -1
      tests/ViolationTest.php

+ 4
- 0
Makefile View File

@@ -0,0 +1,4 @@
.PHONY: tests

tests:
phpunit

+ 2
- 2
composer.json View File

@@ -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.*"
}
}

+ 0
- 1
phpunit.xml View File

@@ -7,7 +7,6 @@
convertWarningsToExceptions = "true"
processIsolation = "false"
stopOnFailure = "false"
syntaxCheck = "true"
bootstrap = "vendor/autoload.php" >

<testsuites>


+ 3
- 1
tests/ExampleTest.php View File

@@ -1,11 +1,13 @@
<?php

use PHPUnit\Framework\TestCase;

/**
* class ExampleTest.
*
* @author Simon Vieille <simon@deblan.fr>
*/
class ExampleTest extends \PHPUnit_Framework_TestCase
class ExampleTest extends TestCase
{
public function testExemple()
{


+ 3
- 2
tests/ValidatorTest.php View File

@@ -1,18 +1,19 @@
<?php

use PHPUnit\Framework\TestCase;
use Deblan\Csv\CsvParser;
use Deblan\CsvValidator\Validator;
use Symfony\Component\Validator\Validation;
use Symfony\Component\Validator\Constraints\NotBlank;
use Symfony\Component\Validator\Constraints\Email;

class ValidatorTest extends \PHPUnit_Framework_TestCase
class ValidatorTest extends TestCase
{
public function testViolation()
{
$parser = $this->generateParser('example.csv');
$validator = $this->generateValidator($parser);
$this->setExpectedException('\RuntimeException');
$this->expectException('\RuntimeException');
$validator->isValid();
}



+ 2
- 1
tests/ViolationTest.php View File

@@ -1,9 +1,10 @@
<?php

use PHPUnit\Framework\TestCase;
use Symfony\Component\Validator\ConstraintViolation;
use Deblan\CsvValidator\Violation;

class ViolationTest extends \PHPUnit_Framework_TestCase
class ViolationTest extends TestCase
{
public function testViolation()
{


Loading…
Cancel
Save