atoum / stubs

Stubs for atoum, the simple modern and intuitive unit testing framework for PHP
Other
17 stars 4 forks source link

stubs and atoum extensions #3

Open agallou opened 8 years ago

agallou commented 8 years ago

Some extensions add new asserters.

Do you know how we could also add autocomplete on this asserters ?

(adding another atoum class causes problems for the autocompletion).

( plus, if we found there could be packaging questions, where do we put the stub ?

jubianchi commented 8 years ago

@agallou I would say that each extension should expose its own stubs. I'll try to build one for an extension to see how we could make this.

agallou commented 8 years ago

Proposal :

Example : https://gist.github.com/agallou/1bde12b1f3bea9894b0a

This means we have to maintain a list of extensions in the asserters.php file of the stubs projets (it won't cause any problem if the trait does not exists). I'm not a fan of this but haven't found another way to do this.

Grummfy commented 8 years ago

+1 for me

Grummfy commented 7 years ago

well let's see atoum/atoum#753