This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * the auto updater class. This is based on Jeremy Clark's (jeremyclark13) automatic-theme-plugin-update. Thanks, Jeremy. | |
| * | |
| * @package Plugin Auto Updater | |
| * @author Daryl Lozupone <dlozupone@renegadetechconsulting.com> | |
| * @version 0.1 | |
| * @since 0.1 | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl http://cs.sensiolabs.org/get/php-cs-fixer.phar -o php-cs-fixer.phar | |
| curl -s http://getcomposer.org/installer | php | |
| php composer.phar install --dev --no-interaction --prefer-source | |
| mkdir -p build/logs | |
| mkdir -p build/cov | |
| #phpUnit setup | |
| export WP_VERSION=3.5.1 | |
| export WP_MULTISITE=0 | |
| mkdir -p /tmp/wordpress | |
| export WP_CORE_DIR=/tmp/wordpress/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Singleton | |
| { | |
| /** | |
| * Returns the *Singleton* instance of this class. | |
| * | |
| * @staticvar Singleton $instance The *Singleton* instances of this class. | |
| * | |
| * @return Singleton The *Singleton* instance. | |
| */ |