Re: RFC: Expectations
| From: | Joe Watkins | Date: | Sat, 19 Oct 2013 07:41:42 +0000 |
| Subject: | Re: RFC: Expectations | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-69698@lists.php.net to get a copy of this message | ||
On 10/19/2013 01:17 AM, Andrea Faulds wrote:
On 18/10/2013 22:46, Joe Watkins wrote: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 JoeEvening Chaps,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.Following on from discussion regarding assertion API in PHP, thefollowing RFC is now up for discussion:https://wiki.php.net/rfc/expectationsPlease do point out any missing sections or information, so that itcan be clarified as quickly as possible.I hope this conveys the idea a bit clearer to everyone ?Cheers Joe