|
From: Marcus B. <ma...@wo...> - 2009-03-11 20:49:45
|
Hi...
Gabor Szabo wrote:
> I hope you'll keep the old version around as I am quite sure there are tons of
> legacy applications that would need testing and that won't upgrade PHP.
We will. We also maintain a lot of backward compatibility across versions.
> Hmm, what hole are you talking about?
The error message doesn't quite read, because just before the "at [...]"
it should have a message.
> For what I understood assertTrue() as all the other assertMethods() will
> accept an *optional* extra parameter as a messages. Isn't that the case?
It should be, but still isn't. The docs are wrong, although it's
certainly not mission critical :).
> Sounds cool but let me first try to write what I understand and then you
> write the expert version. If that's ok with you.
Absolutely fine.
> Again, I think you should also keep the docs for the older versions as many
> people won't be able to use the new one. At least not till they write tons
> of tests so they can risk the upgrade.
It should be a drop in upgrade. the upgrade path would be (a) upgrade to
PHP5 (using SimpleTest 1.0.1 to keep their tests running) (b) Upgrade to
SimpleTest 1.1, which should just drop in. (c) Turn on E_STRICT and then
fix all the PHP4'isms in their code base.
> I am now trying to subclass the reporting class, but I don't understand how
> can I tell autorun to use my ShowPasses class (copied from the docs).
This is all pretty new, and wasn't doc'd at the time of the 1.0.1
release as it was still considered beta. It will be for the 1.0.2
version (that will come out shortly after the beta of 1.1).
<?php
require_once('simpletest/autorun.php');
SimpleTest::prefer(new MyReporter());
class MyTests extends TestSuite { ...}
?>
> Oh and the docs say to require
> simple_test.php while I think it should be simpletest.php
That's just a screw up :(. I'll add it to my doc fixes.
>
> Gabor
yours, Marcus
|