martinaglv/Testify.php — Issue #3: ArrayAccess for tests
Author: netzhuffle
Created: 2011-12-08 12:18:53+00:00
State: open

Another idea, how we could use ArrayAccess:

Today:
```php
$tf->test(function($tf) {
/* … */
});
$tf->test("Testing the add() method", function($tf) {
/* … */
});
```

Idea:
```php
$tf[] = function($tf) {
/* … */
};
$tf["Testing the add() method"] = function($tf) {
/* … */
};
```

Not that beautiful, but easy to understand.
What do you think?