wurde gestern auf das PHP Testfest angesprochen und wollte jetzt mal in die Runde fragen wie stark das Interesse für ein Testfest in Karlsruhe ist.
Worum gehts?
The TestFest is an event that aims at improving the code coverage of the test suite for the PHP language itself.
http://qa.php.net/testfest.php
Wir würden uns also einen Tag (oder länger) zusammensetzen und Tests für PHP schreiben.
Wann?
April - June 2009
Wie sieht so ein Test aus?
Hier ein Beispiel:
ext/standard/tests/strings/strtr.phpt
- Code: Alles auswählen
--TEST--
strtr() function - basic test for strstr()
--FILE--
<?php
/* Do not change this test it is a README.TESTING example. */
$trans = array("hello"=>"hi", "hi"=>"hello", "a"=>"A", "world"=>"planet");
var_dump(strtr("# hi all, I said hello world! #", $trans));
?>
--EXPECT--
string(32) "# hello All, I sAid hi planet! #"
Siehe: http://qa.php.net/write-test.php
Was meint Ihr?
Viele Grüße,
Adrian
