Post navigation

Variables in the @Dataprovider use PHPUnit @Depends

Unfortunately, it is currently not possible for PHPUnit testing both to highlight another test as a prerequisite for a test, to run the tests in case of an error does not occur, and at the same time a data provider for the test to use a previous test accessing the result. This is because, that data provider be initilisiert before iterating through the tests of PHPunit.