Skip to content

Commit

Permalink
Rename HackTestCase -> HackTest (#23)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: hhvm/hsl-experimental#23

Pull Request resolved: #64

Reviewed By: fredemmott

Differential Revision: D12811364

fbshipit-source-id: d633cde986e312c4c62b16ddab5b8b4c863249b3
  • Loading branch information
kmeht authored and facebook-github-bot committed Oct 29, 2018
1 parent dd6f600 commit 378c555
Show file tree
Hide file tree
Showing 35 changed files with 70 additions and 70 deletions.
4 changes: 2 additions & 2 deletions tests/c/CAsyncTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
use namespace HH\Lib\{C, Vec};
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable
// @oss-disable: use InvariantViolationException as InvariantException;

// @oss-disable: <<Oncalls('hack')>>
final class CAsyncTest extends HackTestCase {
final class CAsyncTest extends HackTest {

public static function provideTestGenFirst(
): varray<(Awaitable<Traversable<mixed>>, mixed)> {
Expand Down
4 changes: 2 additions & 2 deletions tests/c/CIntrospectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
use namespace HH\Lib\C;
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class CIntrospectTest extends HackTestCase {
final class CIntrospectTest extends HackTest {

public static function provideTestAny(): varray<mixed> {
return varray[
Expand Down
4 changes: 2 additions & 2 deletions tests/c/CReduceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
use namespace HH\Lib\C;
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class CReduceTest extends HackTestCase {
final class CReduceTest extends HackTest {

public static function provideTestReduce(): varray<mixed> {
return varray[
Expand Down
4 changes: 2 additions & 2 deletions tests/c/CSelectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
use namespace HH\Lib\{C, Str};
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable
// @oss-disable: use InvariantViolationException as InvariantException;

// @oss-disable: <<Oncalls('hack')>>
final class CSelectTest extends HackTestCase {
final class CSelectTest extends HackTest {

public static function provideTestFind(): varray<mixed> {
return varray[
Expand Down
4 changes: 2 additions & 2 deletions tests/dict/DictAsyncTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
use namespace HH\Lib\{Dict, Str};
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class DictAsyncTest extends HackTestCase {
final class DictAsyncTest extends HackTest {

public static function provideTestGen(): varray<mixed> {
return varray[
Expand Down
4 changes: 2 additions & 2 deletions tests/dict/DictCombineTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
use namespace HH\Lib\Dict;
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class DictCombineTest extends HackTestCase {
final class DictCombineTest extends HackTest {

public static function provideTestAssociate(): varray<mixed> {
return varray[
Expand Down
4 changes: 2 additions & 2 deletions tests/dict/DictDivideTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
use namespace HH\Lib\{Dict, Vec};
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class DictDivideTest extends HackTestCase {
final class DictDivideTest extends HackTest {

public static function providePartition(): varray<mixed> {
return varray[
Expand Down
4 changes: 2 additions & 2 deletions tests/dict/DictIntrospectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
use namespace HH\Lib\Dict;
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class DictIntrospectTest extends HackTestCase {
final class DictIntrospectTest extends HackTest {

public static function provideTestEqual(): varray<mixed> {
return varray[
Expand Down
4 changes: 2 additions & 2 deletions tests/dict/DictOrderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
use namespace HH\Lib\{Dict, Str};
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class DictOrderTest extends HackTestCase {
final class DictOrderTest extends HackTest {

public static function provideTestReverse(): varray<mixed> {
return varray[
Expand Down
4 changes: 2 additions & 2 deletions tests/dict/DictSelectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
use namespace HH\Lib\{Dict, Str};
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class DictSelectTest extends HackTestCase {
final class DictSelectTest extends HackTest {

public static function provideTestDiffByKey(): varray<mixed> {
return varray[
Expand Down
4 changes: 2 additions & 2 deletions tests/dict/DictTransformTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
use namespace HH\Lib\{Dict, Str};
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class DictTransformTest extends HackTestCase {
final class DictTransformTest extends HackTest {

public static function provideTestChunk(): varray<mixed> {
return varray[
Expand Down
4 changes: 2 additions & 2 deletions tests/keyset/KeysetAsyncTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
use namespace HH\Lib\{Keyset, Str};
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class KeysetAsyncTest extends HackTestCase {
final class KeysetAsyncTest extends HackTest {

public static function provideTestGen(): varray<mixed> {
return varray[
Expand Down
4 changes: 2 additions & 2 deletions tests/keyset/KeysetCombineTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
use namespace HH\Lib\Keyset;
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class KeysetCombineTest extends HackTestCase {
final class KeysetCombineTest extends HackTest {

public static function provideTestUnion(): varray<mixed> {
return varray[
Expand Down
4 changes: 2 additions & 2 deletions tests/keyset/KeysetDivideTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
use namespace HH\Lib\Keyset;
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class KeysetDivideTest extends HackTestCase {
final class KeysetDivideTest extends HackTest {

public static function providePartition(): varray<mixed> {
return varray[
Expand Down
4 changes: 2 additions & 2 deletions tests/keyset/KeysetIntrospectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
use namespace HH\Lib\Keyset;
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class KeysetIntrospectTest extends HackTestCase {
final class KeysetIntrospectTest extends HackTest {

public static function provideTestEqual(): varray<mixed> {
return varray[
Expand Down
4 changes: 2 additions & 2 deletions tests/keyset/KeysetOrderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
use namespace HH\Lib\{Keyset, Str};
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class KeysetOrderTest extends HackTestCase {
final class KeysetOrderTest extends HackTest {

public static function provideSort(): varray<mixed> {
return varray[
Expand Down
4 changes: 2 additions & 2 deletions tests/keyset/KeysetSelectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
use namespace HH\Lib\{Keyset, Str};
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class KeysetSelectTest extends HackTestCase {
final class KeysetSelectTest extends HackTest {

public static function provideTestDiff(): varray<mixed> {
return varray[
Expand Down
4 changes: 2 additions & 2 deletions tests/keyset/KeysetTransformTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
use namespace HH\Lib\{Keyset, Str};
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class KeysetTransformTest extends HackTestCase {
final class KeysetTransformTest extends HackTest {

public static function provideTestChunk(): varray<mixed> {
return varray[
Expand Down
4 changes: 2 additions & 2 deletions tests/math/MathCompareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
use namespace HH\Lib\Math;
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class MathCompareTest extends HackTestCase {
final class MathCompareTest extends HackTest {

public static function provideTestMaxva(): varray<mixed> {
return varray[
Expand Down
4 changes: 2 additions & 2 deletions tests/math/MathComputeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
use const HH\Lib\_Private\ALPHABET_ALPHANUMERIC;
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable
// @oss-disable: use InvariantViolationException as InvariantException;

// FB likes to be explicit about md5() being unsuitable for crypto, and
// our usual trivial wrapper isn't available in open source.
use function md5 as non_crypto_md5;

// @oss-disable: <<Oncalls('hack')>>
final class MathComputeTest extends HackTestCase {
final class MathComputeTest extends HackTest {
public static function provideTestAbs(): varray<mixed> {
return varray[
tuple(-1, 1),
Expand Down
4 changes: 2 additions & 2 deletions tests/math/MathConstantsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

use namespace HH\Lib\Math;
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable
// @oss-disable: use InvariantViolationException as InvariantException;

// @oss-disable: <<Oncalls('hack')>>
final class MathConstantsTest extends HackTestCase {
final class MathConstantsTest extends HackTest {
public function testInt64Min(): void {
expect(Math\INT64_MIN)->toBeLessThan(0);
$less = Math\INT64_MIN- 1;
Expand Down
4 changes: 2 additions & 2 deletions tests/math/MathContainersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
use namespace HH\Lib\{Math, Str};
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class MathContainersTest extends HackTestCase {
final class MathContainersTest extends HackTest {

public static function provideTestMax(): varray<mixed> {
return varray[
Expand Down
4 changes: 2 additions & 2 deletions tests/str/StrCombineTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
use namespace HH\Lib\Str;
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class StrCombineTest extends HackTestCase {
final class StrCombineTest extends HackTest {

public static function provideJoin(): varray<mixed> {
$elements = varray['the', 'quick', 'brown', 'fox', 1];
Expand Down
4 changes: 2 additions & 2 deletions tests/str/StrDivideTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
use namespace HH\Lib\Str;
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class StrDivideTest extends HackTestCase {
final class StrDivideTest extends HackTest {

public static function provideChunk(): varray<mixed> {
return varray[
Expand Down
4 changes: 2 additions & 2 deletions tests/str/StrFormatTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
use namespace HH\Lib\Str;
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class StrFormatTest extends HackTestCase {
final class StrFormatTest extends HackTest {

public static function provideFormat(): varray<mixed> {
return varray[
Expand Down
4 changes: 2 additions & 2 deletions tests/str/StrIntrospectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
use function Facebook\FBExpect\expect;
// @oss-disable: use InvariantViolationException as InvariantException;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class StrIntrospectTest extends HackTestCase {
final class StrIntrospectTest extends HackTest {

public static function provideCompare(): varray<mixed> {
return varray[
Expand Down
4 changes: 2 additions & 2 deletions tests/str/StrSelectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
use function Facebook\FBExpect\expect;
// @oss-disable: use InvariantViolationException as InvariantException;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class StrSelectTest extends HackTestCase {
final class StrSelectTest extends HackTest {

public static function provideSlice(): varray<mixed> {
return varray[
Expand Down
4 changes: 2 additions & 2 deletions tests/str/StrTransformTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
use function Facebook\FBExpect\expect;
// @oss-disable: use InvariantViolationException as InvariantException;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class StrTransformTest extends HackTestCase {
final class StrTransformTest extends HackTest {

public static function provideCapitalize(): varray<mixed> {
return varray[
Expand Down
4 changes: 2 additions & 2 deletions tests/tuple/TupleAsyncTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

use namespace HH\Lib\Tuple as Tuple;
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class TupleAsyncTest extends HackTestCase {
final class TupleAsyncTest extends HackTest {
public function testWithNonNullableTypes(): void {
/* HH_IGNORE_ERROR[5542] open source */
\HH\Asio\join(async {
Expand Down
4 changes: 2 additions & 2 deletions tests/vec/VecAsyncTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
use namespace HH\Lib\{Str, Vec};
use function Facebook\FBExpect\expect;
use type Facebook\HackTest\DataProvider; // @oss-enable
use type Facebook\HackTest\HackTest as HackTestCase; // @oss-enable
use type Facebook\HackTest\HackTest; // @oss-enable

// @oss-disable: <<Oncalls('hack')>>
final class VecAsyncTest extends HackTestCase {
final class VecAsyncTest extends HackTest {

public static function provideTestGen(): varray<mixed> {
return varray[
Expand Down
Loading

0 comments on commit 378c555

Please sign in to comment.