Skip to content

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
chives committed Jun 2, 2015
1 parent 76b72f4 commit a064770
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 39 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
language: php

php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm

sudo: false

env:
- COMPOSER_FLAGS=""
- COMPOSER_FLAGS="--prefer-lowest"

before_script:
- composer update --no-interaction
- composer update --no-interaction ${COMPOSER_FLAGS}

script: bin/phpunit

Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@
}
],
"require": {
"php": ">=5.3.0",
"php": ">=5.4.0",
"symfony/event-dispatcher" : "~2.2",
"symfony/property-access": "~2.2",
"symfony/property-access": "~2.3",
"symfony/options-resolver": "~2.6",
"fsi/reflection" : "0.9.*",
"fsi/data-indexer" : "0.9.*"
},
"require-dev": {
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/common": "~2.2,>=2.2.3",
"gedmo/doctrine-extensions": "2.3.*",
"symfony/form" : "~2.2",
"doctrine/orm": "~2.5",
"doctrine/common": "~2.5",
"gedmo/doctrine-extensions": "~2.3.10",
"symfony/form" : "~2.4",
"symfony/doctrine-bridge": "~2.2",
"symfony/security-csrf" : "~2.4",
"symfony/routing" : "~2.2",
Expand All @@ -41,7 +41,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.2 -dev"
"dev-master": "1.2-dev"
}
}
}
1 change: 0 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="tests/bootstrap.php"
>
<testsuites>
<testsuite name="FSi DataGrid Component">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ protected function setUp()
$this->markTestSkipped('Symfony Column Extension require Symfony\Component\Form\FormRegistry class.');
}

$entities = array(
new EntityCategory(1, 'category name 1'),
new EntityCategory(2, 'category name 2'),
);

$configuration = $this->getMock('Doctrine\ORM\Configuration');

$objectManager = $this->getMock('Doctrine\ORM\EntityManagerInterface');
Expand All @@ -47,16 +52,12 @@ protected function setUp()
->method('getExpressionBuilder')
->will($this->returnValue(new Expr()));

$query = $this->getMockBuilder('Doctrine\ORM\AbstractQuery')
->setMethods(array('execute', '_doExecute', 'getSql', 'setFirstResult', 'setMaxResults'))
->setConstructorArgs(array($objectManager))
->getMock();
$query = $this->getMock('Doctrine\ORM\AbstractQuery',
array('execute', '_doExecute', 'getSql', 'setFirstResult', 'setMaxResults'),
array($objectManager));
$query->expects($this->any())
->method('execute')
->will($this->returnValue(array(
new EntityCategory(1, 'category name 1'),
new EntityCategory(2, 'category name 2'),
)));
->will($this->returnValue($entities));

$query->expects($this->any())
->method('setFirstResult')
Expand All @@ -72,9 +73,6 @@ protected function setUp()
->will($this->returnValue($query));

$queryBuilder = new QueryBuilder($objectManager);
/* $queryBuilder->expects($this->any())
->method('getQuery')
->will($this->returnValue($queryBuilder));*/

$entityClass = 'FSi\Component\DataGrid\Tests\Fixtures\EntityCategory';
$classMetadata = new ClassMetadata('FSi\Component\DataGrid\Tests\Fixtures\EntityCategory');
Expand All @@ -94,6 +92,9 @@ protected function setUp()
->method('createQueryBuilder')
->withAnyParameters()
->will($this->returnValue($queryBuilder));
$repository->expects($this->any())
->method('findAll')
->will($this->returnValue($entities));

$objectManager->expects($this->any())
->method('getClassMetadata')
Expand Down
18 changes: 0 additions & 18 deletions tests/bootstrap.php

This file was deleted.

0 comments on commit a064770

Please sign in to comment.