Skip to content

Instantly share code, notes, and snippets.

@peterfox
Forked from jasonmccreary/example.php
Created September 9, 2021 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save peterfox/60fbfe743de640923ba64e59a1254602 to your computer and use it in GitHub Desktop.
Save peterfox/60fbfe743de640923ba64e59a1254602 to your computer and use it in GitHub Desktop.
Collection Challenge
<?php
// before
$registry = [
'tests/BasicClass.php' => [
'TestCase',
],
'tests/ComplexClass.php' => [
'TestCase',
'RefreshDatabase',
],
];
// after
$registry = [
[
'TestCase' => 'tests/BasicClass.php',
],
[
'TestCase' => 'tests/ComplexClass.php',
'RefreshDatabase' => 'tests/ComplexClass.php',
],
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment