]> granicus.if.org Git - php/commitdiff
test to function memory_get_peak_usage();
authormarcosptf <marcosptf@yahoo.com.br>
Mon, 21 Dec 2015 19:22:11 +0000 (17:22 -0200)
committerJulien Pauli <jpauli@php.net>
Thu, 24 Dec 2015 09:42:22 +0000 (10:42 +0100)
add new test to uncoverage function;

please, @laurence, see if this path is correct!
Thanks

Zend/tests/memory_get_peak_usage.phpt [new file with mode: 0644]

diff --git a/Zend/tests/memory_get_peak_usage.phpt b/Zend/tests/memory_get_peak_usage.phpt
new file mode 100644 (file)
index 0000000..cc1cf6b
--- /dev/null
@@ -0,0 +1,14 @@
+--TEST--
+int memory_get_peak_usage ([ bool $real_usage = false ] );
+--CREDITS--
+marcosptf - <marcosptf@yahoo.com.br> - #phparty7 - @phpsp - novatec/2015 - sao paulo - br
+--FILE--
+<?php
+var_dump(memory_get_peak_usage());
+var_dump(memory_get_peak_usage(true));
+var_dump(memory_get_peak_usage(false));
+?>
+--EXPECTF--
+int(%d)
+int(%d)
+int(%d)