Open Grummfy opened 6 years ago
Hello,
Why not. What is the pros and cons of using it? How to install it? Who will maintain it :-)?
I will be happy to do it, under the flag of hoa. Just not sure what assertion to create.
Install il like any other atoum extension : composer require
Go :-).
Except the fact that we want something like
$this->option($this->newTestedInstance->someValue())->isSome;
$this->option($this->newTestedInstance->someValue())->isNone;
and we want to be able to make assertion on the value inside, do you see anything else to take into account?
Nop. Just extend boolean
. And isSome
must be equivalent to isSome()
etc.
here it is : https://github.com/Grummfy/atoum-option-extension
@Grummfy code looks good to me 👍 Have you tried to run a build on travis?
just a little tabulation here : https://github.com/Grummfy/atoum-option-extension/blob/master/composer.json#L13
Hello, I think we could create an extension for atoum with specific assert like