Remove flakey test

parent 04189dce
Pipeline #240 passed with stages
in 6 minutes and 6 seconds
......@@ -49,7 +49,7 @@ phpunit-min:
tags:
- docker
cache:
<<*: cache
<<: *cache
policy: pull
phpunit:
......@@ -60,7 +60,7 @@ phpunit:
tags:
- docker
cache:
<<*: cache
<<: *cache
policy: pull
phpunit-nightly:
......@@ -71,7 +71,7 @@ phpunit-nightly:
tags:
- docker
cache:
<<*: cache
<<: *cache
policy: pull
packagist:
......@@ -88,5 +88,5 @@ packagist:
tags:
- docker
cache:
<<*: cache
<<: *cache
policy: pull
<?hh // strict
namespace PHPUnitHHI;
class ConversionTest extends HHITest {
public function testAllClassesExist(): void {
$cmd = 'hh_client --json --search-class PHPUnit';
$ret = null;
$output_arr = null;
$output = \exec($cmd, &$output_arr, &$ret);
$json = @\json_decode($output, true);
if (\json_last_error() != \JSON_ERROR_NONE) {
$this->fail(\sprintf('Invalid JSON: %s', $output));
}
foreach ($json as $rec) {
if ($rec['desc'] == 'class' || $rec['desc'] == 'abstract class') {
$this->assertTrue(
\class_exists($rec['name'], true),
\sprintf('Class "%s" does not exist', $rec['name']),
);
} else if ($rec['desc'] == 'interface') {
$this->assertTrue(
\interface_exists($rec['name'], true),
\sprintf('Interface "%s" does not exist', $rec['name']),
);
} else {
$this->fail(
\sprintf('Unknown class description: "%s"', $rec['desc']),
);
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment