--TEST-- Check for uv_write has no memory leak --FILE-- counter++; }); } uv_run($loop, \UV::RUN_DEFAULT); uv_close($handler); } } $t = new TestCase; $memory = memory_get_usage(); $t->run(); $memory = memory_get_usage() - $memory; echo "$t->counter\n$memory\n"; --EXPECTF-- 1000 0