/** * A method to tear down the environment based on * the layer the test/s is/are in. * * @param string $layer The layer the test/s is/are in. */ function teardownEnv($layer) { $type = $GLOBALS['_MAX']['TEST']['test_type']; $envType = $GLOBALS['_MAX']['TEST'][$type . '_layers'][$layer][1]; if ($envType != NO_DB) { // Don't tear down the DB, it will be dropped at the next test execution //TestEnv::teardownDB(); TestEnv::restorePluginSchemaFiles(); } }