Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ComposerOrchestratorTest with named test cases #497

Merged
merged 1 commit into from
Nov 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions tests/Composer/ComposerOrchestratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ public function provideComposerAutoload(): Generator
{
$composerAutoloaderName = self::COMPOSER_AUTOLOADER_NAME;

yield [
yield 'Empty whitelist prefix' => [
Whitelist::create(true, true, true),
'',
<<<PHP
Expand All @@ -476,7 +476,7 @@ public function provideComposerAutoload(): Generator
PHP
];

yield [
yield 'Whitelist is ignored when prefix is empty' => [
Whitelist::create(true, true, true, 'Acme\Foo'), // Whitelist is ignored when prefix is empty
'',
<<<PHP
Expand All @@ -491,7 +491,7 @@ public function provideComposerAutoload(): Generator
PHP
];

yield [
yield '_Box prefix' => [
Whitelist::create(true, true, true),
'_Box',
<<<PHP
Expand All @@ -506,7 +506,7 @@ public function provideComposerAutoload(): Generator
PHP
];

yield [
yield 'Extended whitelist' => [
(static function (): Whitelist {
$whitelist = Whitelist::create(true, true, true, 'Acme\Foo');

Expand Down Expand Up @@ -540,7 +540,7 @@ class_exists('_Box\Acme\Foo');
PHP
];

yield [
yield 'Whitelist with a function' => [
(static function (): Whitelist {
$whitelist = Whitelist::create(true, true, true, 'Acme\Foo');

Expand Down Expand Up @@ -576,7 +576,7 @@ function foo() {
PHP
];

yield [
yield 'Whitelist with namespaced function' => [
(static function (): Whitelist {
$whitelist = Whitelist::create(true, true, true, 'Acme\Foo');

Expand Down