<?php class PHPUnitTestCaseMemberTest extends \PHPUnit_Framework_TestCase { private $val; protected function setUp() { $this->val = str_repeat("x", 1024*1024); } protected function tearDown() { $this->val = null; } /** * @dataProvider data */ function test() { $this->assertTrue(true); } function data() { return array_fill(0, 1000, []); } } $ phpunit -d memory_limit=128M PhpUnitMemberTest.php PHPUn
