phpunit: How do I pass values between tests?
The setUp() method is always called before tests, so even if you set up a dependency between two tests, any variables set in setUp() will be overwritten. The way PHPUnit data passing works is from the return value of one test to the parameter of the other: class JsonRpcBitcoinTest extends PHPUnit_Framework_TestCase { public function setUp() … Read more