Fix config test for Windows environment

Fix the fatal error of the config test when phpunit is run in the Windows environment.
you should use ``defined('PHP_WINDOWS_VERSION_MAJOR')`` to detect Windows instead