7. --EXPECTF--
%s string %i integer
%d number %f floats
%c single char %x hexadecimal
%w whitespace %e directory sep.
8. Como Fazer
Baixar o source da versão do PHP desejada
tar -xvf php-5.4.5.tar.gz
./configure (com parâmetros necessários)
make
make test
9. Testando
make test TESTS=diretorio/
make test TESTS=diretorio/*.phpt
make test TESTS=diretorio/nome.phpt
Teoricamente .zip do PHP win roda os testes com o php.exe
nmake test
17. --TEST--
Testing wrong param passing imagefilledellipse() of GD library
--CREDITS--
Ivan Rosolen <contato [at] ivanrosolen [dot] com>
#phpsptestfest PHPSP on 2010-05-29
--SKIPIF--
<?php
if (!extension_loaded("gd")) die("skip GD not present");
?>
--FILE--
<?php
// Create a image
$image = imagecreatetruecolor(400, 300);
// choose a color for the ellipse
$ellipse = imagecolorallocate($image, 255, 255, 255);
// draw the white ellipse
imagefilledellipse( 'wrong param', 200, 150, 300, 200, $ellipse);
?>
--EXPECTF--
Warning: imagefilledellipse() expects parameter 1 to be resource, %s given in %s on line %d
18. Deu erro!
*.exp
*.log
*.diff *.out
*.php
*.phpt
*.sh