Added scaffold testing code
Fix sed command incompatibility issues (different -i option behaviour on mac and linux)
Added a script that prepares and runs the tests w/o any additional actions from the user
Improve messaging for cases when phpunit is started w/o WP_TESTS_DIR environment variable
Add some basic tests
Move test configs into tests directory, fold bin dir into the existing scripts directory
Add a check to protect from multiple plugin class instantiation + add a GLOBALS reference to the plugin class so that we could access it from test suite
Extract common testing code into a base testcase class
Add a version test + cleanup bootstrap code
Rename global swiftype plugin object helper method + add a method for getting a valid API key
Refactor plugin initialization to separate filters setup and api client initialization (make it testable)
Add a test for plugin->check_api_authorized() method
Switch phpunit to strict mode on CI + add junit-compatible reports jeneration
Fix comment
updating some styles for WP VIP compliance and dying inside
Use TCP to connect to local mysql to avoid issues with unix socket locations differences
Run tests by copying plugin into the copy of WordPress that is used for running tests
merge with master
Merge branch 'unit-testing'