Skip to content

Instantly share code, notes, and snippets.

@jasonmccreary
Created September 9, 2021 15:20
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 jasonmccreary/63bc04d5bac335bd0d593134b146b187 to your computer and use it in GitHub Desktop.
Save jasonmccreary/63bc04d5bac335bd0d593134b146b187 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