Re: Tests which produce fatal errors

From: Date: Thu, 24 Nov 2011 15:58:15 +0000
Subject: Re: Tests which produce fatal errors
References: 1  Groups: php.qa 
Request: Send a blank email to php-qa+get-65991@lists.php.net to get a copy of this message
using EXPECTF instead of EXPECT + using %s instead of the actual path and %d instead of the line number. On Thu, Nov 24, 2011 at 4:55 PM, Clint M Priest <cpriest@zerocue.com> wrote: > I'm writing new getter/setter property syntax and associated functionality > and working on the test cases now. I have one test that tests that a > privately over-ridden accessor is not accessible externally to the object > which produces a fatal error. This is the expected result and the output > is: > > Fatal error: Cannot get private property TimePeriod::$Hours from context > '' in /opt/trunk/tests/classes/accessor_std_private_error.php on line 14 > > The issue here though is that it has the path to the generated test php > file, which I assume I should not be putting in the expected output. > > What's the right way to do this? > > Thanks, > > -Clint > -- Ferenc Kovács @Tyr43l - http://tyrael.hu

« previous php.qa (#65991) next »