Skip to content

Commit

Permalink
Update to Phony 0.13.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalloc committed Jul 15, 2016
1 parent 9db114c commit 7bd4607
Show file tree
Hide file tree
Showing 19 changed files with 292 additions and 292 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
},
"require-dev": {
"ext-posix": "*",
"eloquent/phony": "^0.12",
"eloquent/phony": "^0.13",
"friendsofphp/php-cs-fixer": "^1",
"hamcrest/hamcrest-php": "^2.0",
"hamcrest/hamcrest-php": "^2",
"peridot-php/leo": "dev-php7",
"peridot-php/peridot": "^1",
"peridot-php/peridot-code-coverage-reporters": "^2",
Expand Down
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions test/suite/Exception/CompositeException.spec.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
describe(CompositeException::class, function () {

it('accepts multiple previous exceptions', function () {
$exception1 = Phony::mock(Throwable::class)->mock();
$exception2 = Phony::mock(Throwable::class)->mock();
$exception1 = Phony::mock(Throwable::class)->get();
$exception2 = Phony::mock(Throwable::class)->get();

$exceptions = [
1 => $exception1,
Expand Down
4 changes: 2 additions & 2 deletions test/suite/Exception/TerminatedException.spec.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
$this->strand = Phony::mock(Strand::class);
$this->strand->id->returns(123);

$this->subject = new TerminatedException($this->strand->mock());
$this->subject = new TerminatedException($this->strand->get());
});

it('produces a useful message', function () {
expect($this->subject->getMessage())->to->equal('Strand #123 was terminated.');
});

it('exposes the terminated strand', function () {
expect($this->subject->strand())->to->equal($this->strand->mock());
expect($this->subject->strand())->to->equal($this->strand->get());
});

});
Loading

0 comments on commit 7bd4607

Please sign in to comment.