marcofiset / Testify.php

A micro unit testing framework
http://marco-fiset.github.com/Testify.php/
129 stars 27 forks source link

ArrayAccess for tests #3

Closed netzhuffle closed 11 years ago

netzhuffle commented 12 years ago

Another idea, how we could use ArrayAccess:

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

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

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

marcofiset commented 11 years ago

As you said, not that beautiful. This won't be implemented.