hoaproject / Test

The Hoa\Test library.
https://hoa-project.net/
11 stars 10 forks source link

Mock: Add ability to mock constant #52

Closed Hywan closed 8 years ago

Hywan commented 8 years ago

It works \o/.

$this->constant->DIRECTORY_SEPARATOR = '/';

Please, can I have a peer review from @jubianchi?

The goal is to get soon to be able to merge https://github.com/hoaproject/Console/pull/58. Then, I will propose it into atoum.

Hywan commented 8 years ago

Related to https://github.com/atoum/atoum/issues/511.

jubianchi commented 8 years ago

seems good ;) would have been as easy to do it directly in atoum :p

Hywan commented 8 years ago

@jubianchi Yup, that's really easy to integrate inside atoum and it's a great feature!

Hywan commented 8 years ago

@jubianchi I can do that today.