Skip to content
This repository was archived by the owner on Jan 5, 2019. It is now read-only.

Commit b49be27

Browse files
author
Mario Basic
committed
Mocked swap facade for all tests.
1 parent 07736a8 commit b49be27

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ language: php
33
php:
44
- '5.6'
55
- '7.0'
6-
- hhvm
76

87
services:
98
- mysql

tests/TestCase.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,13 @@ public function createApplication()
2222

2323
return $app;
2424
}
25+
26+
public function setUp()
27+
{
28+
parent::setUp();
29+
30+
// Avoid using external service to fetch quotes
31+
$rate = new \Swap\Model\Rate(1);
32+
Swap::shouldReceive('quote')->andReturn($rate);
33+
}
2534
}

0 commit comments

Comments
 (0)