Is there a way to get the tests inside of a TestCase to run in a certain order? For example, I want to separate the life cycle of an object from creation to use
TestCase
PHPUnit allows the use of '@depends' annotation which specifies dependent test cases and allows passing arguments between dependent test cases.
If you want your tests to share various helper objects and settings, you can use setUp(), tearDown() to add to the sharedFixture property.
setUp()
tearDown()
sharedFixture