Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 7ab9de9

Browse files
committed
Bump package to PHP 5.6
1 parent 09d1543 commit 7ab9de9

File tree

3 files changed

+9
-14
lines changed

3 files changed

+9
-14
lines changed

.travis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
language: php
22

33
php:
4-
- 5.5
5-
- 5.6
64
- 7.0
75
- hhvm
86

@@ -17,13 +15,13 @@ env:
1715
matrix: SYMFONY_VERSION=3.1.*
1816
global:
1917
- SYMFONY_DEPRECATIONS_HELPER=2080
20-
- SYMFONY_PHPUNIT_DIR=".phpunit" SYMFONY_PHPUNIT_REMOVE="symfony/yaml"
18+
- SYMFONY_PHPUNIT_DIR=".phpunit" SYMFONY_PHPUNIT_REMOVE="symfony/yaml" SYMFONY_PHPUNIT_VERSION=5.7
2119

2220
matrix:
2321
include:
2422
#- php: 7.0
2523
# env: DEPS=dev SYMFONY_VERSION=3.3.*
26-
- php: 5.5
24+
- php: 5.6
2725
env: COMPOSER_FLAGS="--prefer-lowest" SYMFONY_VERSION=2.8.* SYMFONY_DEPRECATIONS_HELPER=weak
2826
- php: 7.1
2927
env: SYMFONY_VERSION=3.0.*
@@ -44,4 +42,3 @@ script: vendor/bin/simple-phpunit
4442

4543
notifications:
4644
irc: "irc.freenode.org#symfony-cmf"
47-

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,23 @@
1212
}
1313
],
1414
"require": {
15-
"php": "^5.5.6|^7.0",
15+
"php": "^5.6|^7.0",
1616
"symfony/framework-bundle": "^2.8|^3.0",
1717
"sonata-project/doctrine-phpcr-admin-bundle": "^2.0",
1818
"sonata-project/admin-bundle": "^3.6.0",
1919
"symfony-cmf/tree-browser-bundle": "^2.0"
2020
},
2121
"require-dev": {
2222
"symfony-cmf/testing": "^2.0",
23-
"symfony-cmf/core-bundle": "^2.0",
23+
"symfony-cmf/core-bundle": "^2.0.0-RC2",
2424
"symfony-cmf/routing-bundle": "^2.0",
2525
"symfony-cmf/seo-bundle": "^2.0",
2626
"symfony-cmf/menu-bundle": "^2.0",
2727
"symfony-cmf/block-bundle": "^2.0",
2828
"symfony-cmf/content-bundle": "^2.0",
2929
"doctrine/orm": "^2.4",
3030
"doctrine/phpcr-odm": "^2.0",
31+
"doctrine/doctrine-bundle": "^1.3",
3132
"symfony/phpunit-bridge": "^3.2",
3233
"matthiasnoback/symfony-dependency-injection-test": "~0.6",
3334
"matthiasnoback/symfony-config-test": "^1.3.1",

tests/Unit/Admin/Core/Extension/ChildExtensionTest.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,19 @@ public function testAlterNewInstance()
1919
{
2020
$parent = new \StdClass();
2121

22-
$modelManager = $this->getMock('Sonata\AdminBundle\Model\ModelManagerInterface');
22+
$modelManager = $this->createMock('Sonata\AdminBundle\Model\ModelManagerInterface');
2323
$modelManager->expects($this->any())
2424
->method('find')
2525
->will($this->returnValue($parent))
2626
;
2727

28-
$request = $this->getMockBuilder('Symfony\Component\HttpFoundation\Request')
29-
->disableOriginalConstructor()
30-
->getMock()
31-
;
28+
$request = $this->createMock('Symfony\Component\HttpFoundation\Request');
3229
$request->expects($this->any())
3330
->method('get')
3431
->will($this->returnValue('parent-id'))
3532
;
3633

37-
$admin = $this->getMock('Sonata\AdminBundle\Admin\AdminInterface');
34+
$admin = $this->createMock('Sonata\AdminBundle\Admin\AdminInterface');
3835
$admin->expects($this->any())
3936
->method('getModelManager')
4037
->will($this->returnValue($modelManager))
@@ -48,7 +45,7 @@ public function testAlterNewInstance()
4845
->will($this->returnValue($request))
4946
;
5047

51-
$child = $this->getMock('Symfony\Cmf\Bundle\CoreBundle\Model\ChildInterface');
48+
$child = $this->createMock('Symfony\Cmf\Bundle\CoreBundle\Model\ChildInterface');
5249
$child->expects($this->once())
5350
->method('setParentObject')
5451
->with($this->equalTo($parent));

0 commit comments

Comments
 (0)