diff options
author | Sander Roobol <sander@php.net> | 2002-10-06 11:26:49 +0000 |
---|---|---|
committer | Sander Roobol <sander@php.net> | 2002-10-06 11:26:49 +0000 |
commit | 8cf14a42f5097726411dbeeaa71ceed2797311a1 (patch) | |
tree | ef297beec3e6445cea496a7673b66307bd263beb /ext/standard/tests/strings/str_repeat.phpt | |
parent | 6ca22a1740cf5c8b9e7c0ae86c8aa3458f80956d (diff) | |
download | php-git-8cf14a42f5097726411dbeeaa71ceed2797311a1.tar.gz |
Add testcases for implode() and str_repeat()
Diffstat (limited to 'ext/standard/tests/strings/str_repeat.phpt')
-rw-r--r-- | ext/standard/tests/strings/str_repeat.phpt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/ext/standard/tests/strings/str_repeat.phpt b/ext/standard/tests/strings/str_repeat.phpt new file mode 100644 index 0000000000..406e811af7 --- /dev/null +++ b/ext/standard/tests/strings/str_repeat.phpt @@ -0,0 +1,29 @@ +--TEST-- +str_repeat() function +--POST-- +--GET-- +--FILE-- +<?php +$input = array('a', 'foo', 'barbazbax'); +foreach($input AS $i) { + for($n=0; $n<5; $n++) { + echo str_repeat($i, $n)."\n"; + } +} +?> +--EXPECT-- + +a +aa +aaa +aaaa + +foo +foofoo +foofoofoo +foofoofoofoo + +barbazbax +barbazbaxbarbazbax +barbazbaxbarbazbaxbarbazbax +barbazbaxbarbazbaxbarbazbaxbarbazbax |