Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
Direclty use HackTest ExpectationFailedException
Browse files Browse the repository at this point in the history
Now that PHPUnit is no longer supported by fbexpect, use it directly.

This restores HackTest correctly detecting errors vs failures
  • Loading branch information
fredemmott committed Nov 29, 2018
1 parent beff712 commit 22b9d59
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 83 deletions.
4 changes: 1 addition & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
"name": "facebook/fbexpect",
"description": "Unit test helpers for Facebook projects",
"license": "MIT",
"require-dev": {
"hhvm/hacktest": "^1.0"
},
"require": {
"hhvm": "^3.28",
"hhvm/hacktest": "^1.0",
"hhvm/hsl": "^3.26",
"hhvm/hhvm-autoload": "^1.6",
"facebook/difflib": "^1.0.0"
Expand Down
147 changes: 73 additions & 74 deletions composer.lock

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

1 change: 1 addition & 0 deletions src/Assert.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

use namespace HH\Lib\Str;
use type Facebook\DiffLib\StringDiff;
use type Facebook\HackTest\ExpectationFailedException;

abstract class Assert {

Expand Down
5 changes: 0 additions & 5 deletions src/Exception/ExpectationFailedException.php

This file was deleted.

2 changes: 1 addition & 1 deletion tests/ExpectObjTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Facebook\FBExpect;

use type Facebook\HackTest\{DataProvider, HackTest};
use type Facebook\HackTest\{DataProvider, ExpectationFailedException, HackTest};

final class ExpectObjTestException extends \Exception {}

Expand Down

0 comments on commit 22b9d59

Please sign in to comment.