On 18/10/2013 22:46, Joe Watkins wrote:
Evening Chaps,
Following on from discussion regarding assertion API in PHP, the
following RFC is now up for discussion:
https://wiki.php.net/rfc/expectations
Please do point out any missing sections or information, so that it
can be clarified as quickly as possible.
I hope this conveys the idea a bit clearer to everyone ?
Cheers
Joe
I like it, but I'd rather we just called them what they are and use
AssertionException, because expect is really just a new assert
statement, with a different name to avoid conflicting with assert() for
backwards-compatibility :)
Otherwise, I have no objections.
Thanks.
I thought about it ...
For the sake of making the concept as simple as possible to convey in documentation, it is probably better to have a uniform name:
Expect throwing ExpectationException is intuitive to some degree, Expect throwing an AssertionException seems less so ...
Cheers
Joe