You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(14) |
Oct
(22) |
Nov
(21) |
Dec
(7) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(4) |
Feb
(26) |
Mar
(62) |
Apr
(60) |
May
(73) |
Jun
(41) |
Jul
(64) |
Aug
(39) |
Sep
(19) |
Oct
(18) |
Nov
(55) |
Dec
(24) |
| 2005 |
Jan
(35) |
Feb
(122) |
Mar
(130) |
Apr
(62) |
May
(57) |
Jun
(103) |
Jul
(71) |
Aug
(142) |
Sep
(67) |
Oct
(27) |
Nov
(49) |
Dec
(56) |
| 2006 |
Jan
(42) |
Feb
(65) |
Mar
(30) |
Apr
(43) |
May
(13) |
Jun
(25) |
Jul
(5) |
Aug
(14) |
Sep
(18) |
Oct
(55) |
Nov
(126) |
Dec
(82) |
| 2007 |
Jan
(83) |
Feb
(83) |
Mar
(173) |
Apr
(30) |
May
(64) |
Jun
(156) |
Jul
(50) |
Aug
(29) |
Sep
(25) |
Oct
(26) |
Nov
(51) |
Dec
(9) |
| 2008 |
Jan
(36) |
Feb
(71) |
Mar
(93) |
Apr
(123) |
May
(34) |
Jun
(14) |
Jul
(21) |
Aug
(26) |
Sep
(49) |
Oct
(38) |
Nov
(19) |
Dec
(46) |
| 2009 |
Jan
(18) |
Feb
(16) |
Mar
(46) |
Apr
(4) |
May
(18) |
Jun
(9) |
Jul
(11) |
Aug
(4) |
Sep
(31) |
Oct
(19) |
Nov
(4) |
Dec
(11) |
| 2010 |
Jan
(15) |
Feb
(9) |
Mar
|
Apr
(20) |
May
(5) |
Jun
(8) |
Jul
(2) |
Aug
(9) |
Sep
(6) |
Oct
(21) |
Nov
(20) |
Dec
(11) |
| 2011 |
Jan
(11) |
Feb
(5) |
Mar
(6) |
Apr
(1) |
May
(12) |
Jun
(4) |
Jul
(1) |
Aug
(3) |
Sep
(4) |
Oct
(3) |
Nov
(3) |
Dec
(5) |
| 2012 |
Jan
(28) |
Feb
(7) |
Mar
(3) |
Apr
|
May
(5) |
Jun
(6) |
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(4) |
Nov
(5) |
Dec
(4) |
| 2013 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(7) |
Dec
|
| 2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2016 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
(4) |
Jun
(1) |
Jul
|
Aug
(2) |
Sep
(3) |
Oct
|
Nov
(1) |
Dec
|
| 2017 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Chris C. <ch...@w3...> - 2009-10-21 23:17:52
|
You're right, that does seem broken. I haven't tested it myself but from the code you posted you should get a failure in test_m1 but not in test_m2. It's as if SimpleTest is not resetting state correctly between the test methods and it thinks it's still waiting for an error to be raised. On 22/10/2009, at 2:37 AM, Nicolas Terray wrote: > 2009/10/21 Jason Sweat <jsw...@ya...>: >> Hi Nicolas, >> >> Your code throws an exception, and does not raise an error, so the >> unit test is telling you that. Everything appears to be working as >> expected with SimpleTest. >> > > Why the Fail message speaks about test_m2 ? (tests shouldn't be > independent?) > Why does it say "Expected true, got [Boolean: false]" ? (I didn't make > any assertion about True or False values) > Why does my test go green if i remove the function test_m2() ? > > Thanks, > Nicolas > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart > your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support |
|
From: Marcus B. <ma...@wo...> - 2009-10-21 20:00:16
|
Hi... Nicolas Terray wrote: > Is it a bug? Yes. My next chance to look at this will be towards the end of next week. SimpleTest has two strategies for mocking, subclassing or creating a fake class with an identical interface. In this case it tried to subclass when it wasn't capable. This should be easily fixable. > > Thanks, > Nicolas Terray yours, Marcus |
|
From: Nicolas T. <nic...@gm...> - 2009-10-21 17:05:46
|
Hi,
<?php
abstract class A {
protected abstract function internal();
public function hello() {
return $this->internal();
}
}
Mock::generate('A');
class AbstractTest extends UnitTestCase {
function test_m() {
$o = new MockA($this);
$o->setReturnValue('hello', 123);
}
}
?>
Fatal error: Class MockA contains 1 abstract method and must therefore
be declared abstract or implement the remaining methods (A::internal)
Is it a bug?
Thanks,
Nicolas Terray
|
|
From: Nicolas T. <nic...@gm...> - 2009-10-21 15:38:00
|
2009/10/21 Jason Sweat <jsw...@ya...>: > Hi Nicolas, > > Your code throws an exception, and does not raise an error, so the unit test is telling you that. Everything appears to be working as expected with SimpleTest. > Why the Fail message speaks about test_m2 ? (tests shouldn't be independent?) Why does it say "Expected true, got [Boolean: false]" ? (I didn't make any assertion about True or False values) Why does my test go green if i remove the function test_m2() ? Thanks, Nicolas |
|
From: Jason S. <jsw...@ya...> - 2009-10-21 15:26:47
|
Hi Nicolas,
Your code throws an exception, and does not raise an error, so the unit test is telling you that. Everything appears to be working as expected with SimpleTest.
Regards,
Jason
________________________________
From: Nicolas Terray <nic...@gm...>
To: "Help, advice, bugs and workarounds" <sim...@li...>
Sent: Wed, October 21, 2009 10:10:57 AM
Subject: [Simpletest-support] Strange behavior with expectError
Hi,
<?php
class A {
function m() {
throw new Exception('Woohoo');
}
}
class ErrorTest extends UnitTestCase {
function test_m1() {
$a = new A();
$this->expectException('Exception');
$this->expectError();
$a->m();
}
function test_m2() {
}
}
?>
The test fails:
-> ErrorTest -> test_m2 -> Expected true, got [Boolean: false] ->
Expected error not caught
Why does the message refers to test_m2() ? Where does this true/false
check come from?
Strange, isn't it?
If I remove the test_m2() method or the expectError, it goes green.
Yours,
Nicolas Terray
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Simpletest-support mailing list
Sim...@li...
https://lists.sourceforge.net/lists/listinfo/simpletest-support
|
|
From: Nicolas T. <nic...@gm...> - 2009-10-21 15:11:14
|
Hi,
<?php
class A {
function m() {
throw new Exception('Woohoo');
}
}
class ErrorTest extends UnitTestCase {
function test_m1() {
$a = new A();
$this->expectException('Exception');
$this->expectError();
$a->m();
}
function test_m2() {
}
}
?>
The test fails:
-> ErrorTest -> test_m2 -> Expected true, got [Boolean: false] ->
Expected error not caught
Why does the message refers to test_m2() ? Where does this true/false
check come from?
Strange, isn't it?
If I remove the test_m2() method or the expectError, it goes green.
Yours,
Nicolas Terray
|
|
From: Carlos E. M. d. S. <ce...@ce...> - 2009-10-09 04:25:57
|
I found the real problem! The directory where the tests are must be excluded from eclipse Build Path. Then Result View works! On Thu, Oct 8, 2009 at 11:47 PM, Carlos Eduardo Moreira dos Santos <ce...@ce...> wrote: > No, I haven't. After reading it, I can see the output of the tests in > "Browser Output" tab. Isn't there a way to se it in "Result view"? > Result view is working only if project files are in workspace > directory. > > Thank you > > On Thu, Oct 8, 2009 at 10:13 PM, Jason Sweat <jsw...@ya...> wrote: >> Hi Carlos, >> >> Have you taken a look at Steve's recommendations from this thread? >> http://sourceforge.net/mailarchive/forum.php?thread_name=p06230901c6cf54f83a3a%40[192.168.1.2]&forum_name=simpletest-support >> >> Regards, >> Jason >> >> >> >> >> ________________________________ >> From: Carlos Eduardo Moreira dos Santos <ce...@ce...> >> To: sim...@li... >> Sent: Thu, October 8, 2009 5:58:22 PM >> Subject: [Simpletest-support] Nothing happens in a project outside workspace >> >> Hi, >> >> example's test1.php is working, but I copied this file to another >> project outside workspace (/srv/http/projectname) and when I choose >> "Run as Simpletest", nothing happens. I launched eclipse through >> terminal and there's no message. Any idea why? >> >> Thank you, >> Carlos Eduardo >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Simpletest-support mailing list >> Sim...@li... >> https://lists.sourceforge.net/lists/listinfo/simpletest-support >> >> >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Simpletest-support mailing list >> Sim...@li... >> https://lists.sourceforge.net/lists/listinfo/simpletest-support >> > |
|
From: Carlos E. M. d. S. <ce...@ce...> - 2009-10-09 02:48:26
|
No, I haven't. After reading it, I can see the output of the tests in "Browser Output" tab. Isn't there a way to se it in "Result view"? Result view is working only if project files are in workspace directory. Thank you On Thu, Oct 8, 2009 at 10:13 PM, Jason Sweat <jsw...@ya...> wrote: > Hi Carlos, > > Have you taken a look at Steve's recommendations from this thread? > http://sourceforge.net/mailarchive/forum.php?thread_name=p06230901c6cf54f83a3a%40[192.168.1.2]&forum_name=simpletest-support > > Regards, > Jason > > > > > ________________________________ > From: Carlos Eduardo Moreira dos Santos <ce...@ce...> > To: sim...@li... > Sent: Thu, October 8, 2009 5:58:22 PM > Subject: [Simpletest-support] Nothing happens in a project outside workspace > > Hi, > > example's test1.php is working, but I copied this file to another > project outside workspace (/srv/http/projectname) and when I choose > "Run as Simpletest", nothing happens. I launched eclipse through > terminal and there's no message. Any idea why? > > Thank you, > Carlos Eduardo > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support > |
|
From: Jason S. <jsw...@ya...> - 2009-10-09 01:13:21
|
Hi Carlos, Have you taken a look at Steve's recommendations from this thread? http://sourceforge.net/mailarchive/forum.php?thread_name=p06230901c6cf54f83a3a%40[192.168.1.2]&forum_name=simpletest-support Regards, Jason ________________________________ From: Carlos Eduardo Moreira dos Santos <ce...@ce...> To: sim...@li... Sent: Thu, October 8, 2009 5:58:22 PM Subject: [Simpletest-support] Nothing happens in a project outside workspace Hi, example's test1.php is working, but I copied this file to another project outside workspace (/srv/http/projectname) and when I choose "Run as Simpletest", nothing happens. I launched eclipse through terminal and there's no message. Any idea why? Thank you, Carlos Eduardo ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Simpletest-support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpletest-support |
|
From: Carlos E. M. d. S. <ce...@ce...> - 2009-10-08 22:58:57
|
Hi, example's test1.php is working, but I copied this file to another project outside workspace (/srv/http/projectname) and when I choose "Run as Simpletest", nothing happens. I launched eclipse through terminal and there's no message. Any idea why? Thank you, Carlos Eduardo |
|
From: Marcus B. <ma...@wo...> - 2009-10-06 23:47:42
|
Hi...
Aaron Chilcott wrote:
> The problem is when it comes to mocking private methods. Using the
> example above: if the method /somethingElse/ is private, then it seems
> that it is no longer possible to mock the method e.g.
It works under the hood by overriding the real method. This will not
work for private methods. If you are going to override the method, then
make it protected.
> There is always a little glimmer of hope that let's me hold on to the
> possibility that this is not intended functionality and I don't have to
> re-write most of our test cases!
This is actually undefined behaviour :).
The idea of partial mocks is to automate a common pattern for inserting
dependencies - that of of overriding a factory method for testing
purposes. E.g...
class UserAgent {
// Code that uses Socket...
function createSocket($domain, $port) {
new Socket($domain, $port);
}
}
In the test...
class UserAgentWithMockSocket extends UserAgent {
public $socket;
function createSocket($domain, $port) {
return $this->socket;
}
}
class MyTest extends UnitTestCase {
function test...() {
$agent = new UserAgentWithMockSocket();
$agent->socket = new MockSocket();
...
$agent->fetch(...);
}
}
Note that all the other functionality of UserAgent is unchanged here.
The override is only used to inject a dependency. It's still tested as a
unit ("behaviour testing").
Modern techniques of dependency injection render this kind of trick
obsolete. Dependencies are likely passed in the constructor these days,
or as setters. See "Dependency injection", "Service Locator" and
"Registry" for alternate patterns. It would mean rewriting some code,
but it should actually be that onerous.
Using the partial mocks to test individual methods is likely to be
brittle in the face of refactoring. I'm guessing here, but if the
classes are that complicated that you have to test them in pieces, then
you probably want to break them up into smaller classes. A sign that
this is the case is usually a lot of private methods and few public ones.
You don't strictly need to rewrite all your tests, if you can get away
with using protected access instead of private, but I think you will
want to. Right now you might be over testing a little, and is it
possible that the tests are difficult to read through being over technical?
I'd have to see some real code to be sure. Can you post any?
> Thanks for your time
> Aaron
>
yours, Marcus
|
|
From: Aaron C. <aar...@un...> - 2009-10-06 23:20:28
|
Hi, I've recently started converting some old php4 libraries to php5.
I've noticed that we have in the past taken liberties with php4 and
simple-tests. A lot of my time has been spent converting test cases and
learning new pitfalls, one such, is causing confusion.
I in the past we have written test cases on the method level. Each
method had a test case, each call from within the tested method to
another method was a call to a mocked method. e.g.
class thing {
public function something() {
$somethingElseValue = $this->somethingElse(); <-- this will be mocked
...
}
public function somethingElse() {
return 'something else';
}
}
I guess you may call this white-box testing, it allows for fine grain
control and test cases which are quite independent of each other.
The problem is when it comes to mocking private methods. Using the
example above: if the method /somethingElse/ is private, then it seems
that it is no longer possible to mock the method e.g.
class thing {
public function something() {
$somethingElseValue = $this->somethingElse(); <-- this will be mocked
...
}
private function somethingElse() {
return 'somethingElse';
}
}
...
$returnReference = 'Bunny';
$partiallyMockedThing->setReturnReference('somethingElse',
$returnReference);
In this second example the /somethingElse/ method is private, mocking
the method and then running the test case will result in the variable
/$somethingElseValue /having the string value of /something else
/instead of /Bunny/. In my experimentation I have found that: If I were
to change the somethingElse method to public again, then the
/$somethingElseValue/ would then have the string value of /Bunny
/instead of /something else/
I'm assuming that my understanding of test cases is limited and that I'm
approaching this the wrong way, I would appreciate any clarification in
this matter?
There is always a little glimmer of hope that let's me hold on to the
possibility that this is not intended functionality and I don't have to
re-write most of our test cases!
FYI:
PHP 5.2.6-3ubuntu4.2 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug 21
2009 21:43:13)
Simpletest 1.0.1
Thanks for your time
Aaron
--
Please sponsor my team and I for the Sydney to Wollongong Ride on Noverber the 1st 2009!
http://register.gongride.org.au/?aaronchilcott
Donations over $65 get a free autographed photograph!
|
|
From: Marcus B. <ma...@wo...> - 2009-09-25 14:42:28
|
Hi...
Davie De Smet wrote:
> I am using the WebTester of Simpletest and I am breaking my head on this one. I have executed the get method on a webpage with a checkbox and I want to verify is the checkbox is checked=checked or not but I am not able to get it out of the webtester.
> Can someone tell me with what function I can verify this?
I often cannot remember my own code, but I think...
$this->assertField('Check this!', true);
...should work. If the checkbox has a value, then you can assert
against the value I believe.
> Thanks a lot!
>
> Davie De smet
yours, Marcus
|
|
From: Davie De S. <dav...@no...> - 2009-09-25 11:16:08
|
Hello, I am using the WebTester of Simpletest and I am breaking my head on this one. I have executed the get method on a webpage with a checkbox and I want to verify is the checkbox is checked=checked or not but I am not able to get it out of the webtester. Can someone tell me with what function I can verify this? Thanks a lot! Davie De smet |
|
From: Jason S. <jsw...@ya...> - 2009-09-24 17:12:11
|
So which email address would you prefer to have listed in the documentation Perrick?
Regards,
Jason
________________________________
From: Perrick Penet <pe...@no...>
To: "Help, advice, bugs and workarounds" <sim...@li...>
Sent: Sunday, September 20, 2009 3:41:53 PM
Subject: Re: [Simpletest-support] 1.1beta documentation
A little look at the commits shows quite a few names :
Arialdo Martini => documentation
Perrick Penet => developper and documentation
Travis Swicegood => developper
Mark Rickerby => developper
Edward Z. Yang => developper
Yours,
Perrick
Jason Sweat wrote:
> Hello All,
>
> The current documentation has the following attribution:
>
>
> AuthorsMarcus Baker
> Primary Developer
> ma...@la... Harry Fuecks
> Packager
> ha...@us... Jason Sweat
> Documentation
> jsw...@ya...
>
> There are many more current contributors. Please let me know if you would like to be included in the documentation including your name, preferred email address, and what role you would like to be listed as.
>
> Regards,
> Jason
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Simpletest-support mailing list
> Sim...@li...
> https://lists.sourceforge.net/lists/listinfo/simpletest-support
>
>
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Simpletest-support mailing list
Sim...@li...
https://lists.sourceforge.net/lists/listinfo/simpletest-support
|
|
From: Perrick P. <pe...@no...> - 2009-09-20 21:08:50
|
A little look at the commits shows quite a few names : Arialdo Martini => documentation Perrick Penet => developper and documentation Travis Swicegood => developper Mark Rickerby => developper Edward Z. Yang => developper Yours, Perrick Jason Sweat wrote: > Hello All, > > The current documentation has the following attribution: > > > AuthorsMarcus Baker > Primary Developer > ma...@la... Harry Fuecks > Packager > ha...@us... Jason Sweat > Documentation > jsw...@ya... > > There are many more current contributors. Please let me know if you would like to be included in the documentation including your name, preferred email address, and what role you would like to be listed as. > > Regards, > Jason > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support > > |
|
From: Jason S. <jsw...@ya...> - 2009-09-20 20:30:59
|
The 1.1beta documentation is published up at http://simpletest.org/api/ The previous version of the API docs is now located at http://simpletest.org/api_1.0.1/ Most of my corrections were to eliminated phpDocumentor parsing errors, if anyone has corrections to the content, let me know or check into subversion and we can republish the docs when we roll the tarball. Regards, Jason ________________________________ From: Jason Sweat <jsw...@ya...> To: SimpleTest <Sim...@li...> Sent: Saturday, September 19, 2009 8:29:14 PM Subject: [Simpletest-support] 1.1beta documentation Hello All, The current documentation has the following attribution: AuthorsMarcus Baker Primary Developer ma...@la... Harry Fuecks Packager ha...@us... Jason Sweat Documentation jsw...@ya... There are many more current contributors. Please let me know if you would like to be included in the documentation including your name, preferred email address, and what role you would like to be listed as. Regards, Jason ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Simpletest-support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpletest-support |
|
From: Mikkel N. R. <mik...@th...> - 2009-09-20 18:58:50
|
Adding
error_reporting(E_ALL);
at the top of the script did the trick. I removed the E_STRICT, too may
warnings.
Thanks all for helping :)
Regards,
Mikkel
Jason Sweat wrote:
> Hi Mikkel,
>
> The error reporting will respond to the currently specified error reporting level, suppressing notices if you have requested it (perhaps defaulted via php.ini)
>
> Try adding
>
> error_reporting(E_ALL|E_STRICT);
>
> To the top of your script.
>
> Regards,
> Jason
>
>
>
>
> ________________________________
> From: Mikkel N. Rasmussen <mik...@th...>
> To: sim...@li...
> Sent: Saturday, September 12, 2009 8:08:43 AM
> Subject: [Simpletest-support] How is SimpleTestErrorHandler supposed to work?
>
> Hi
>
> I have a situation here. I use version 1.0.1 of SimpleTest, and some
> logical errors seems to be supressed...
>
> If I run the following code:
> <?php
> require_once('simpletest/unit_tester.php');
> require_once('simpletest/reporter.php');
>
> class DamagedLogic
> {
>
> public function damagedFunction()
> {
> * // Should generate some kind of error.
> return $notDefinedVariable;
> * }
> }
>
> class DamageTestCase extends UnitTestCase {
> function testDamagedFunction() {
> $damagedLogic = new DamagedLogic();
> $damagedLogic->damagedFunction();
> }
> }
>
> $test = &new DamageTestCase();
> $test->run(new HtmlReporter());
> ?>
>
> which sould generate some kind of error since the $notDefinedVariable is
> not defined, the test is reported as passing. When I step through the
> code, I see that the SimpleTestErrorHandler gets invoked, but still, no
> errors gets reported. The code documentation for the
> SimpleTestErrorHandler is:
> /**
> * Error handler that simply stashes any errors into the global
> * error queue. Simulates the existing behaviour with respect to
> * logging errors, but this feature may be removed in future.
> * @param $severity PHP error code.
> * @param $message Text of error.
> * @param $filename File error occoured in.
> * @param $line Line number of error.
> * @param $super_globals Hash of PHP super global arrays.
> * @static
> * @access public
> */
> But is does not help me muct.
>
> What am I missing here?
>
> Regards,
> Mikkel
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Simpletest-support mailing list
> Sim...@li...
> https://lists.sourceforge.net/lists/listinfo/simpletest-support
>
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Simpletest-support mailing list
> Sim...@li...
> https://lists.sourceforge.net/lists/listinfo/simpletest-support
>
|
|
From: Marcus B. <ma...@la...> - 2009-09-20 12:46:18
|
Hi...
Apart from doc and bug fixes, everything is ready to go apart from one
wrinkle. There is a probably as yet undiscovered feature in the 1.1 code
- you can change the HTML parser.
If you issue this command at the start of the test suite, but after the
simpletest includes...
SimpleTest::setParsers(array(new SimpleTidyPageBuilder(),
new SimplePHPPageBuilder()));
...SimpleTest will first try to use the HTML Tidy parser, and if that
can't be done, falls back to the old native PHP one.
The HTML tidy parser is not enabled by default, because there are still
a couple of tweaks that need to be done to handle textarea events
properly. If that's not an issue, the Tidy based parser is about 4 times
faster.
I'm hoping to fix the remaining acceptance tests for the Tidy parser
before release. Then I have a quandry - whether to enable it by default.
I'd like to have the Tidy detection on, but risk a massive number of bug
reports. Could people try this mode out with their own test suites? If
everything works, then I can set it as the default and hopefully
everyone's tests will run faster, but they won't know why.
yours, Marcus
|
|
From: Jason S. <jsw...@ya...> - 2009-09-20 01:29:30
|
Hello All,
The current documentation has the following attribution:
AuthorsMarcus Baker
Primary Developer
ma...@la... Harry Fuecks
Packager
ha...@us... Jason Sweat
Documentation
jsw...@ya...
There are many more current contributors. Please let me know if you would like to be included in the documentation including your name, preferred email address, and what role you would like to be listed as.
Regards,
Jason
|
|
From: Mikkel N. R. <mik...@th...> - 2009-09-18 18:39:53
|
Hi Guys Thank you for helping me. Once I'll get a change to try your suggestions out, I'll get back to you. Regards, Mikkel Btw, I use PhpEd as IDE. Atm I have no clue how it interfaces with php... Marcus Baker wrote: > Hi... > > Mikkel N. Rasmussen wrote: > >> which sould generate some kind of error since the $notDefinedVariable is >> not defined, the test is reported as passing. When I step through the >> code, I see that the SimpleTestErrorHandler gets invoked, but still, no >> errors gets reported. >> > > Does your debugger work by tailing the PHP error log? That is, is it > intercepting the messages that would go to the browser, but for a > php.ini setting hiding the errors. > > To avoid duplicates when both a debugger and web page sees the > errors, SimpleTest does not echo them to the debugger. That was the > bit in the comment about the behaviour maybe changing later (it > since has). > > Three options: > > 1) Change the php.ini as Jason suggested, so that errors are visible > on the web page on your dev. box. > > 2) Use the latest SVN version (PHP 5 only). > > 3) Remove the if clause of the error handler to do with "log_errors". > > Does that help? > > >> Regards, >> Mikkel >> > > yours, Marcus > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support > |
|
From: Marcus B. <ma...@wo...> - 2009-09-18 15:46:45
|
Hi... Mikkel N. Rasmussen wrote: > which sould generate some kind of error since the $notDefinedVariable is > not defined, the test is reported as passing. When I step through the > code, I see that the SimpleTestErrorHandler gets invoked, but still, no > errors gets reported. Does your debugger work by tailing the PHP error log? That is, is it intercepting the messages that would go to the browser, but for a php.ini setting hiding the errors. To avoid duplicates when both a debugger and web page sees the errors, SimpleTest does not echo them to the debugger. That was the bit in the comment about the behaviour maybe changing later (it since has). Three options: 1) Change the php.ini as Jason suggested, so that errors are visible on the web page on your dev. box. 2) Use the latest SVN version (PHP 5 only). 3) Remove the if clause of the error handler to do with "log_errors". Does that help? > > Regards, > Mikkel yours, Marcus |
|
From: Jason S. <jsw...@ya...> - 2009-09-13 20:19:53
|
Hi Mikkel,
The error reporting will respond to the currently specified error reporting level, suppressing notices if you have requested it (perhaps defaulted via php.ini)
Try adding
error_reporting(E_ALL|E_STRICT);
To the top of your script.
Regards,
Jason
________________________________
From: Mikkel N. Rasmussen <mik...@th...>
To: sim...@li...
Sent: Saturday, September 12, 2009 8:08:43 AM
Subject: [Simpletest-support] How is SimpleTestErrorHandler supposed to work?
Hi
I have a situation here. I use version 1.0.1 of SimpleTest, and some
logical errors seems to be supressed...
If I run the following code:
<?php
require_once('simpletest/unit_tester.php');
require_once('simpletest/reporter.php');
class DamagedLogic
{
public function damagedFunction()
{
* // Should generate some kind of error.
return $notDefinedVariable;
* }
}
class DamageTestCase extends UnitTestCase {
function testDamagedFunction() {
$damagedLogic = new DamagedLogic();
$damagedLogic->damagedFunction();
}
}
$test = &new DamageTestCase();
$test->run(new HtmlReporter());
?>
which sould generate some kind of error since the $notDefinedVariable is
not defined, the test is reported as passing. When I step through the
code, I see that the SimpleTestErrorHandler gets invoked, but still, no
errors gets reported. The code documentation for the
SimpleTestErrorHandler is:
/**
* Error handler that simply stashes any errors into the global
* error queue. Simulates the existing behaviour with respect to
* logging errors, but this feature may be removed in future.
* @param $severity PHP error code.
* @param $message Text of error.
* @param $filename File error occoured in.
* @param $line Line number of error.
* @param $super_globals Hash of PHP super global arrays.
* @static
* @access public
*/
But is does not help me muct.
What am I missing here?
Regards,
Mikkel
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Simpletest-support mailing list
Sim...@li...
https://lists.sourceforge.net/lists/listinfo/simpletest-support
|
|
From: Mikkel N. R. <mik...@th...> - 2009-09-12 14:08:48
|
Hi
I have a situation here. I use version 1.0.1 of SimpleTest, and some
logical errors seems to be supressed...
If I run the following code:
<?php
require_once('simpletest/unit_tester.php');
require_once('simpletest/reporter.php');
class DamagedLogic
{
public function damagedFunction()
{
* // Should generate some kind of error.
return $notDefinedVariable;
* }
}
class DamageTestCase extends UnitTestCase {
function testDamagedFunction() {
$damagedLogic = new DamagedLogic();
$damagedLogic->damagedFunction();
}
}
$test = &new DamageTestCase();
$test->run(new HtmlReporter());
?>
which sould generate some kind of error since the $notDefinedVariable is
not defined, the test is reported as passing. When I step through the
code, I see that the SimpleTestErrorHandler gets invoked, but still, no
errors gets reported. The code documentation for the
SimpleTestErrorHandler is:
/**
* Error handler that simply stashes any errors into the global
* error queue. Simulates the existing behaviour with respect to
* logging errors, but this feature may be removed in future.
* @param $severity PHP error code.
* @param $message Text of error.
* @param $filename File error occoured in.
* @param $line Line number of error.
* @param $super_globals Hash of PHP super global arrays.
* @static
* @access public
*/
But is does not help me muct.
What am I missing here?
Regards,
Mikkel
|
|
From: Richard A. <rh...@ju...> - 2009-09-11 01:16:28
|
At 8:11 AM -0700 8/9/09, Steven Balthazor wrote: >I just tried installing the Simpletest plugin into Eclipse 3.5 and >something is not right Hi Steven, Thank you for looking into the problem. I have set things up as per your recommendations and it's all working nicely. Thank you! ...Richard. |