Skip to content

Commit

Permalink
- Moved symfiny/yaml to suggested package.
Browse files Browse the repository at this point in the history
- Readded support for php 7.0.
  • Loading branch information
tschulte committed Sep 17, 2018
1 parent 35a2049 commit 2773dbb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: php
php:
- '7.0'
- '7.1'
- '7.2'

Expand Down
7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,10 @@
"zendframework/zend-db": "^2.0"
},
"require": {
"php": "^7.1.3",
"zendframework/zend-cache": "^2.0",
"psr/container": "^1",
"symfony/console": "~2.3|~3.0|^4.0",
"psr/http-message": "^1.0",
"symfony/yaml": "^2.0|^4.0"
"psr/http-message": "^1.0"
},
"suggest": {
"zendframework/zend-psr7bridge": "For use with the optional view layer",
Expand All @@ -44,7 +42,8 @@
"zendframework/zend-i18n": "For use with the optional view layer",
"zendframework/zend-json": "For use with the optional view layer",
"mongodb/mongodb": "If you intend to use MongoDB for your configuration storage",
"zendframework/zend-db": "If you intend to use a relational DB for your configuration storage"
"zendframework/zend-db": "If you intend to use a relational DB for your configuration storage",
"symfony/yaml": "If you intend to use yaml for parsing configuration files"
},
"bin": ["bin/magium-configuration"]
}
8 changes: 8 additions & 0 deletions tests/Config/YamlConfigurationRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@

class YamlConfigurationRepositoryTest extends TestCase
{
protected function setUp()
{
if (!class_exists('Symfony\Component\Yaml\Yaml')) {
$this->markTestSkipped(
'The package symfony/yaml is not available.'
);
}
}

public function testXpath()
{
Expand Down

0 comments on commit 2773dbb

Please sign in to comment.