Re: [PHP-CVS] cvs: php-src /tests/lang comments.phpt

2008-07-06 Thread Nuno Lopes

Sounds good. I'll create it.
Nuno


- Original Message -

Hello Nuno,

 how about a unix specific test that invokes a php script as a shell
command? We would need to create that file manually so that it points to
the correct PHP executable (the one being tested) on the first line.

#!< getenv('TEST_PHP_EXECUTABLE') >

marcus

Sunday, July 6, 2008, 5:40:39 PM, you wrote:


nlopess Sun Jul  6 15:40:39 2008 UTC



  Modified files:
/php-src/tests/lang   comments.phpt
  Log:
  add

http://cvs.php.net/viewvc.cgi/php-src/tests/lang/comments.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/tests/lang/comments.phpt
diff -u /dev/null php-src/tests/lang/comments.phpt:1.2
--- /dev/null   Sun Jul  6 15:40:39 2008
+++ php-src/tests/lang/comments.phptSun Jul  6 15:40:39 2008
@@ -0,0 +1,23 @@
+--TEST--
+#-style comments
+--FILE--
+#teste
+#teste2
+
+?>>

+--EXPECTF--
+#teste2
+#ola
+uhm # ah
+e este, # hein?







Best regards,
Marcus 



--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-CVS] cvs: php-src /tests/lang comments.phpt

2008-07-06 Thread Marcus Boerger
Hello Nuno,

  how about a unix specific test that invokes a php script as a shell
command? We would need to create that file manually so that it points to
the correct PHP executable (the one being tested) on the first line.

#!< getenv('TEST_PHP_EXECUTABLE') >

marcus

Sunday, July 6, 2008, 5:40:39 PM, you wrote:

> nlopess Sun Jul  6 15:40:39 2008 UTC

>   Modified files:  
> /php-src/tests/lang   comments.phpt 
>   Log:
>   add
>   
> http://cvs.php.net/viewvc.cgi/php-src/tests/lang/comments.phpt?r1=1.1&r2=1.2&diff_format=u
> Index: php-src/tests/lang/comments.phpt
> diff -u /dev/null php-src/tests/lang/comments.phpt:1.2
> --- /dev/null   Sun Jul  6 15:40:39 2008
> +++ php-src/tests/lang/comments.phptSun Jul  6 15:40:39 2008
> @@ -0,0 +1,23 @@
> +--TEST--
> +#-style comments
> +--FILE--
> +#teste
> +#teste2
> + +
> +#ahahah
> +#ahhfhf
> +
> +echo '#ola'; //?
> +echo "\n";
> +echo 'uhm # ah'; #ah?
> +echo "\n";
> +echo "e este, # hein?";
> +echo "\n";
> +
+?>>
> +--EXPECTF--
> +#teste2
> +#ola
> +uhm # ah
> +e este, # hein?






Best regards,
 Marcus


-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php