Re: Re: run-tests.php

From: Date: Fri, 14 Sep 2007 12:31:48 +0000
Subject: Re: Re: run-tests.php
References: 1 2 3 4 5 6 7  Groups: php.internals php.qa 
Request: Send a blank email to internals+get-32317@lists.php.net to get a copy of this message
Hi guys - There is an alternative patch if you have't already committed this. The line: if (preg_match("/^$wanted_re$/s", $output)) can just be changed to remove the "s" modifier, I was working on trying to fix up the tests and make sure that they all work. The problematic ones are the php_info and php_credits which rely on the %s matching over line endings. Zoe
The main changes are: '%s' => '[^\r\n]+' '%a' => '.+' This means that some tests have to be fixed, but the majority passes. Most important is that with this patch I found some tests that had the expected output wrong. So unless someone rejects this patch, I'll commit it (and update the http://qa.php.net/write-test.php page too). Anyway, I don't think that a function name should be replaced by %s. The expected output should be as stricter as possible.
    
from a short review of the patch I think it's fine and a good idea. So please go on and commit. johannes


« previous php.internals (#32317) next »