Skip to content

Commit 2826460

Browse files
committed
Fixed build for php<5.5
1 parent e778380 commit 2826460

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
- SYMFONY_VERSION=3.1.*
1111

1212
before_install:
13-
- export SYMFONY_DEPRECATIONS_HELPER=weak #set this to "strict" to make build fail on deprecation messages
13+
- export SYMFONY_DEPRECATIONS_HELPER=strict
1414
- composer self-update
1515

1616
install:

Pair/PairManager.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@
66
use Money\Currencies\ISOCurrencies;
77
use Money\Currency;
88
use Money\CurrencyPair;
9-
use Money\Exception\UnresolvableCurrencyPairException;
109
use Money\Exchange;
1110
use Money\Money;
1211
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
1312
use Tbbc\MoneyBundle\MoneyException;
14-
use Tbbc\MoneyBundle\Pair\StorageInterface;
1513
use Tbbc\MoneyBundle\TbbcMoneyEvents;
1614

1715
/**

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
TbbcMoneyBundle
22
===============
33

4-
[![Build Status](https://travis-ci.org/TheBigBrainsCompany/TbbcMoneyBundle.png?branch=master)](https://travis-ci.org/TheBigBrainsCompany/TbbcMoneyBundle)
5-
[![Symfony](https://img.shields.io/badge/symfony-~2.8%7C~3.0-green.svg)]()
6-
[![Downloads](https://img.shields.io/packagist/dt/tbbc/money-bundle.svg)]()
7-
[![license](https://img.shields.io/github/license/TheBigBrainsCompany/TbbcMoneyBundle.svg)]()
8-
4+
[![Build Status](https://img.shields.io/travis/TheBigBrainsCompany/TbbcMoneyBundle/master.svg?style=flat-square)](https://travis-ci.org/TheBigBrainsCompany/TbbcMoneyBundle)
5+
[![PHP](https://img.shields.io/badge/php-%3E%3D%205.5-8892BF.svg?style=flat-square)]()
6+
[![Symfony](https://img.shields.io/badge/symfony-~2.8%7C~3.0-green.svg?style=flat-square)]()
7+
[![Downloads](https://img.shields.io/packagist/dt/tbbc/money-bundle.svg?style=flat-square)]()
8+
[![license](https://img.shields.io/github/license/TheBigBrainsCompany/TbbcMoneyBundle.svg?style=flat-square)]()
99

1010
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/cb69e820-135b-4906-93fd-7921ba46a6e6/big.png)](https://insight.sensiolabs.com/projects/cb69e820-135b-4906-93fd-7921ba46a6e6)
1111

Tests/Pair/RatioProvider/AbstractRatioProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function testRatioFetching()
4545

4646
public function testExceptionForUnknownCurrency()
4747
{
48-
$this->expectException('Tbbc\MoneyBundle\MoneyException');
48+
$this->setExpectedException('Tbbc\MoneyBundle\MoneyException');
4949
$this->ratioProvider->fetchRatio('ZZZ', 'USD');
5050
}
5151

Tests/Pair/RatioProvider/YahooFinanceRatioProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function testExceptionForUnknownCurrency()
5353
{
5454
$ratioProvider = new YahooFinanceRatioProvider();
5555

56-
$this->expectException('Tbbc\MoneyBundle\MoneyException');
56+
$this->setExpectedException('Tbbc\MoneyBundle\MoneyException');
5757
$ratioProvider->fetchRatio('ZZZ', 'USD');
5858
}
5959

0 commit comments

Comments
 (0)