Compatible with Symfony3

This commit is contained in:
Maxim 2015-12-07 03:50:08 +07:00 committed by Big_Shark
parent 58b80628dd
commit 443fb8291a
3 changed files with 12 additions and 3 deletions

View File

@ -24,8 +24,13 @@ matrix:
allow_failures:
- php: hhvm
- env: SYMFONY_VERSION="^3.0.0"
- env: SYMFONY_VERSION="^3.0.0" COMPOSER_FLAGS="--prefer-lowest"
- env: SYMFONY_VERSION="dev-master"
exclude:
# Symfony 3.x requires PHP 5.5
- php: 5.4
env: SYMFONY_VERSION="~3.0.0"
- php: 5.4
env: SYMFONY_VERSION="dev-master"
before_install:
- phpenv config-rm xdebug.ini

View File

@ -1,3 +1,7 @@
<?php
require_once __DIR__ . '/../vendor/autoload.php';
if(!class_exists('Symfony\\Component\\Form\\Test\\TypeTestCase')) {
class_alias('Symfony\\Component\\Form\\Tests\\Extension\\Core\\Type\\TypeTestCase', 'Symfony\\Component\\Form\\Test\\TypeTestCase');
}

View File

@ -16,7 +16,7 @@
"require": {
"propel/propel": "dev-master",
"symfony/symfony": "^2.8"
"symfony/symfony": "~2.5||~3.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8.21|^5.0.10",