Optimized cart get_checkout_url method.
Start of cart unit tests.
Changed pregmatch delimiters and optimized regex.
Fixes #6584.
Merge branch 'master' of github.com:woothemes/woocommerce