Unit tests can be run from the command line using:
phpunit --colors --coverage-html coverage --verbose --stderr --bootstrap tests/bootstrap.php tests/tests.php
Changes:
+ Added a new bootstrap file (as bootstrap.php) that helps the unit tests run more smoothly.
+ Allow for the possibility that session_start has already been called prior to construction of a Facebook class.
+ Updated the app-secret unit test to confirm that Desktop applications require a user access token to get insights.
+ Make sure that current URLs like /example.php?a=b&c=&d retain their structure (don't strip or introduce an equals
sign for valueless GET params), and added unit tests to exercise this.
+ CSRF state is now managed using the persistent store instead of cookies.