From c865e74ebd6b36fab1d8a54e9482714f73b599e2 Mon Sep 17 00:00:00 2001 From: Joshua Sherman Date: Sun, 26 Jan 2014 21:35:56 -0500 Subject: [PATCH] Updated headers and dropped tests The tests weren't complete nor were they being used so I dropped them. Since this branch is still actively being maintained as it's the PHP 5.3 compatible stuff I figured I should update the headers to have the current year and explicitly show that it's PHP 5.3+ and not just PHP 5. --- LICENSE | 2 +- classes/API/Common.php | 6 +- classes/API/Google/Profanity.php | 6 +- classes/API/Gravatar.php | 6 +- classes/API/Tinychat.php | 6 +- classes/Browser.php | 6 +- classes/Cache.php | 6 +- classes/Config.php | 6 +- classes/Controller.php | 6 +- classes/Convert.php | 6 +- classes/Database.php | 6 +- classes/Database/Common.php | 6 +- classes/Database/PDO/Common.php | 6 +- classes/Database/PDO/MySQL.php | 6 +- classes/Database/PDO/PostgreSQL.php | 6 +- classes/Database/PDO/SQLite.php | 6 +- classes/Date.php | 6 +- classes/Display/Common.php | 6 +- classes/Display/JSON.php | 6 +- classes/Display/PHP.php | 6 +- classes/Display/RSS.php | 6 +- classes/Display/XML.php | 6 +- classes/Distance.php | 6 +- classes/Dynamic.php | 6 +- classes/Error.php | 6 +- classes/File.php | 6 +- classes/Form.php | 6 +- classes/HTML.php | 6 +- classes/Log.php | 6 +- classes/Model.php | 6 +- classes/Module.php | 6 +- classes/Number.php | 6 +- classes/Object.php | 6 +- classes/Profiler.php | 6 +- classes/Security.php | 6 +- classes/Session.php | 6 +- classes/Sort.php | 6 +- classes/String.php | 6 +- classes/Time.php | 6 +- classes/Validate.php | 6 +- pickles.php | 6 +- tests/classes/ConvertTest.php | 59 --------------- tests/classes/DateTest.php | 32 -------- tests/classes/StringTest.php | 112 ---------------------------- 44 files changed, 121 insertions(+), 324 deletions(-) delete mode 100644 tests/classes/ConvertTest.php delete mode 100644 tests/classes/DateTest.php delete mode 100644 tests/classes/StringTest.php diff --git a/LICENSE b/LICENSE index 4854089..a6c8f0c 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2007-2013 Joshua Sherman +Copyright (c) 2007-2014 Joshua Sherman Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/classes/API/Common.php b/classes/API/Common.php index 9937372..dfc1df6 100644 --- a/classes/API/Common.php +++ b/classes/API/Common.php @@ -3,13 +3,13 @@ /** * Common API Class File for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/API/Google/Profanity.php b/classes/API/Google/Profanity.php index e7c63ca..6ae87e4 100644 --- a/classes/API/Google/Profanity.php +++ b/classes/API/Google/Profanity.php @@ -3,13 +3,13 @@ /** * Google Profanity Class File for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/API/Gravatar.php b/classes/API/Gravatar.php index f7ecce8..3598c27 100644 --- a/classes/API/Gravatar.php +++ b/classes/API/Gravatar.php @@ -3,13 +3,13 @@ /** * Gravatar Class File for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/API/Tinychat.php b/classes/API/Tinychat.php index 31772d3..38c76b3 100644 --- a/classes/API/Tinychat.php +++ b/classes/API/Tinychat.php @@ -3,13 +3,13 @@ /** * Tinychat Class File for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Browser.php b/classes/Browser.php index 35fe1bd..a60811b 100644 --- a/classes/Browser.php +++ b/classes/Browser.php @@ -3,13 +3,13 @@ /** * Browser Utility Collection * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Cache.php b/classes/Cache.php index 0aba116..c635e07 100644 --- a/classes/Cache.php +++ b/classes/Cache.php @@ -3,13 +3,13 @@ /** * Caching System for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Config.php b/classes/Config.php index 4ec7e0b..b58ec93 100644 --- a/classes/Config.php +++ b/classes/Config.php @@ -3,13 +3,13 @@ /** * Configuration Class File for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Controller.php b/classes/Controller.php index cdc5e86..cf91adf 100644 --- a/classes/Controller.php +++ b/classes/Controller.php @@ -3,13 +3,13 @@ /** * Single Entry Controller * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Convert.php b/classes/Convert.php index 7aaf8b3..ec65395 100644 --- a/classes/Convert.php +++ b/classes/Convert.php @@ -3,13 +3,13 @@ /** * Converter * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Database.php b/classes/Database.php index 291548f..63c2f4f 100644 --- a/classes/Database.php +++ b/classes/Database.php @@ -3,13 +3,13 @@ /** * Database Class File for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Database/Common.php b/classes/Database/Common.php index 3cd83ac..b3f0ec5 100644 --- a/classes/Database/Common.php +++ b/classes/Database/Common.php @@ -3,13 +3,13 @@ /** * Common Database Class File for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Database/PDO/Common.php b/classes/Database/PDO/Common.php index 51e9d88..737c594 100644 --- a/classes/Database/PDO/Common.php +++ b/classes/Database/PDO/Common.php @@ -3,13 +3,13 @@ /** * PDO Class File for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Database/PDO/MySQL.php b/classes/Database/PDO/MySQL.php index 69a21e4..1644110 100644 --- a/classes/Database/PDO/MySQL.php +++ b/classes/Database/PDO/MySQL.php @@ -3,13 +3,13 @@ /** * MySQL Class File for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Database/PDO/PostgreSQL.php b/classes/Database/PDO/PostgreSQL.php index c887079..8a3728e 100644 --- a/classes/Database/PDO/PostgreSQL.php +++ b/classes/Database/PDO/PostgreSQL.php @@ -3,13 +3,13 @@ /** * PostgreSQL Class File for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Database/PDO/SQLite.php b/classes/Database/PDO/SQLite.php index fbb279e..3acfbf1 100644 --- a/classes/Database/PDO/SQLite.php +++ b/classes/Database/PDO/SQLite.php @@ -3,13 +3,13 @@ /** * SQLite Class File for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Date.php b/classes/Date.php index 52b00c7..6490172 100644 --- a/classes/Date.php +++ b/classes/Date.php @@ -3,13 +3,13 @@ /** * Date Utility Collection * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Display/Common.php b/classes/Display/Common.php index 0fd6c07..1a6a1b0 100644 --- a/classes/Display/Common.php +++ b/classes/Display/Common.php @@ -3,13 +3,13 @@ /** * Common Display Class File for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Display/JSON.php b/classes/Display/JSON.php index 3d616a0..b6ab9cc 100644 --- a/classes/Display/JSON.php +++ b/classes/Display/JSON.php @@ -3,13 +3,13 @@ /** * JSON Display Class File for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Display/PHP.php b/classes/Display/PHP.php index f6f38de..d774698 100644 --- a/classes/Display/PHP.php +++ b/classes/Display/PHP.php @@ -3,13 +3,13 @@ /** * PHP Display Class File for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Display/RSS.php b/classes/Display/RSS.php index 41f5dec..8853f89 100644 --- a/classes/Display/RSS.php +++ b/classes/Display/RSS.php @@ -3,13 +3,13 @@ /** * RSS Display Class File for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Display/XML.php b/classes/Display/XML.php index 2077b2b..81ca428 100644 --- a/classes/Display/XML.php +++ b/classes/Display/XML.php @@ -3,13 +3,13 @@ /** * XML Display Class File for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Distance.php b/classes/Distance.php index f20a270..c7c0e45 100644 --- a/classes/Distance.php +++ b/classes/Distance.php @@ -3,13 +3,13 @@ /** * Distance * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Dynamic.php b/classes/Dynamic.php index 15416a7..f166da4 100644 --- a/classes/Dynamic.php +++ b/classes/Dynamic.php @@ -3,13 +3,13 @@ /** * Dynamic Content Class File for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Error.php b/classes/Error.php index 2ca12c4..d0e0672 100644 --- a/classes/Error.php +++ b/classes/Error.php @@ -3,13 +3,13 @@ /** * Error Reporting for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/File.php b/classes/File.php index 224d3e5..84fbc89 100644 --- a/classes/File.php +++ b/classes/File.php @@ -3,13 +3,13 @@ /** * File Utility Collection * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Form.php b/classes/Form.php index 5c63dbd..e187e02 100644 --- a/classes/Form.php +++ b/classes/Form.php @@ -3,13 +3,13 @@ /** * Form Class File for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/HTML.php b/classes/HTML.php index 2c1a879..38af907 100644 --- a/classes/HTML.php +++ b/classes/HTML.php @@ -3,13 +3,13 @@ /** * HTML Class File for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Log.php b/classes/Log.php index ad8712a..5e3a82b 100644 --- a/classes/Log.php +++ b/classes/Log.php @@ -3,13 +3,13 @@ /** * Logging System for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Model.php b/classes/Model.php index 1db36d0..53e9653 100644 --- a/classes/Model.php +++ b/classes/Model.php @@ -3,13 +3,13 @@ /** * Model Parent Class for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Module.php b/classes/Module.php index 67e01d4..1bd69ba 100644 --- a/classes/Module.php +++ b/classes/Module.php @@ -3,13 +3,13 @@ /** * Module Class File for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Number.php b/classes/Number.php index 2456435..3a0329f 100644 --- a/classes/Number.php +++ b/classes/Number.php @@ -3,13 +3,13 @@ /** * Number Utility Collection * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Object.php b/classes/Object.php index 4abd617..0c29551 100644 --- a/classes/Object.php +++ b/classes/Object.php @@ -3,13 +3,13 @@ /** * Object Class File for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Profiler.php b/classes/Profiler.php index 7c52b89..b2d3838 100644 --- a/classes/Profiler.php +++ b/classes/Profiler.php @@ -3,13 +3,13 @@ /** * Profiler * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Security.php b/classes/Security.php index 85bd07a..27fa7a0 100644 --- a/classes/Security.php +++ b/classes/Security.php @@ -3,13 +3,13 @@ /** * Security System for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Session.php b/classes/Session.php index ead03c8..c3b9d4f 100644 --- a/classes/Session.php +++ b/classes/Session.php @@ -3,13 +3,13 @@ /** * Session Handling for PICKLES * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Sort.php b/classes/Sort.php index b3092b3..134bf0b 100644 --- a/classes/Sort.php +++ b/classes/Sort.php @@ -3,13 +3,13 @@ /** * Sorting Utility Collection * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/String.php b/classes/String.php index d07e962..bed4359 100644 --- a/classes/String.php +++ b/classes/String.php @@ -3,13 +3,13 @@ /** * String Utility Collection * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Time.php b/classes/Time.php index 8c549af..aba170d 100644 --- a/classes/Time.php +++ b/classes/Time.php @@ -3,13 +3,13 @@ /** * Time Utility Collection * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/classes/Validate.php b/classes/Validate.php index 25826ff..467b6fa 100644 --- a/classes/Validate.php +++ b/classes/Validate.php @@ -3,13 +3,13 @@ /** * Validator * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/pickles.php b/pickles.php index 8b6db71..dd92837 100644 --- a/pickles.php +++ b/pickles.php @@ -8,13 +8,13 @@ * base is established as well as the path that Smarty will use to store * the compiled pages. * - * PHP version 5 + * PHP version 5.3+ * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * - * @author Joshua Sherman - * @copyright Copyright 2007-2013, Joshua Sherman + * @author Joshua Sherman + * @copyright Copyright 2007-2014, Joshua Sherman * @license http://www.opensource.org/licenses/mit-license.html * @package PICKLES * @link https://github.com/joshtronic/pickles diff --git a/tests/classes/ConvertTest.php b/tests/classes/ConvertTest.php deleted file mode 100644 index 7d724d8..0000000 --- a/tests/classes/ConvertTest.php +++ /dev/null @@ -1,59 +0,0 @@ -assertEquals(Convert::toJSON($a), $b); - } - - public function providerToJSON() - { - $object = (object)'object'; - $object->foo = 'foo'; - $object->bar = 'bar'; - - return array( - array('', '""'), - array('foo', '"foo"'), - array(array('bar'), '["bar"]'), - array(array('foo', 'bar'), '["foo","bar"]'), - array(19810223, '19810223'), - array(array(1981, 02, 23), '[1981,2,23]'), - array(array('foo', 1981), '["foo",1981]'), - array(array('foo', array('bar')), '["foo",["bar"]]'), - array($object, '{"scalar":"object","foo":"foo","bar":"bar"}'), - array(true, 'true'), - array(false, 'false'), - array(null, 'null'), - ); - } - - /** - * @dataProvider providerArrayToXML - */ - public function testArrayToXML($a, $b, $c) - { - $this->assertEquals(Convert::arrayToXML($a, $b), $c); - } - - public function providerArrayToXML() - { - return array( - array('foo', false, ''), - array(array('foo', 'bar'), false, '<0>foo<1>bar'), - array(array('foo', 'bar'), true, "<0>foo\n<1>bar\n"), - array(array('foo' => 'bar'), false, 'bar'), - array(array('children' => array('child' => array('foo', 'bar'))), false, 'foobar'), - array(array('children' => array('child' => array('foo', 'bar'))), true, "\n\tfoo\n\tbar\n\n"), - ); - } -} - -?> diff --git a/tests/classes/DateTest.php b/tests/classes/DateTest.php deleted file mode 100644 index 3983f37..0000000 --- a/tests/classes/DateTest.php +++ /dev/null @@ -1,32 +0,0 @@ -assertEquals(Date::age($a), $b); - } - - public function providerAge() - { - ini_set('date.timezone', 'America/New_York'); - - $time = strtotime('-25 years'); - - return array( - array(date('Y-m-d', $time), '25'), - array(date('m/d/Y', $time), '25'), - array(date('r', $time), '25'), - array('today', '0'), - array('400 days ago', '1'), - array(true, Date::age('1969-12-31')), - ); - } -} - -?> diff --git a/tests/classes/StringTest.php b/tests/classes/StringTest.php deleted file mode 100644 index c3308ea..0000000 --- a/tests/classes/StringTest.php +++ /dev/null @@ -1,112 +0,0 @@ -assertEquals(String::formatPhoneNumber($a), $b); - } - - public function providerFormatPhoneNumber() - { - return array( - array('1234567890', '123-456-7890'), - array('123 456 7890', '123-456-7890'), - array('123.456.7890', '123-456-7890'), - array('123_456_7890', '123-456-7890'), - array('1234567890', '123-456-7890'), - array('1234-56-7890', '123-456-7890'), - array('(123) 456-7890', '123-456-7890'), - array('1234567890 x1000', '123-456-7890x1000'), - array('(123) 456-7890_x10.00', '123-456-7890x1000'), - ); - } - - /** - * @dataProvider providerGenerateGravatarHash - */ - public function testGenerateGravatarHash($a, $b) - { - $this->assertEquals(String::generateGravatarHash($a), $b); - } - - public function providerGenerateGravatarHash() - { - return array( - array('foo@bar.com', 'f3ada405ce890b6f8204094deb12d8a8'), - array('FOO@BAR.COM', 'f3ada405ce890b6f8204094deb12d8a8'), - ); - } - - public function testIsEmpty() - { - $this->assertTrue(String::isEmpty('')); - $this->assertTrue(String::isEmpty(' ')); - $this->assertTrue(String::isEmpty(false)); - $this->assertTrue(String::isEmpty(null)); - $this->assertTrue(String::isEmpty(true, false)); - - $this->assertFalse(String::isEmpty(0)); - $this->assertFalse(String::isEmpty('foo')); - $this->assertFalse(String::isEmpty(' bar ')); - $this->assertFalse(String::isEmpty(true)); - } - - public function testRandom() - { - $this->assertEquals(strlen(String::random()), 8); - $this->assertEquals(strlen(String::random(16)), 16); - - $this->assertEquals(preg_match('/[A-Z0-9]/', String::random(32, true, true)), 1); - $this->assertEquals(preg_match('/[A-Z]/', String::random(32, true, false)), 1); - $this->assertEquals(preg_match('/[0-9]/', String::random(32, false, true)), 1); - - $this->assertEquals(preg_match('/[0-9]/', String::random(32, true, false)), 0); - $this->assertEquals(preg_match('/[A-Z]/', String::random(32, false, true)), 0); - $this->assertEquals(preg_match('/[A-Z0-9]/', String::random(32, false, false)), 0); - } - - /** - * @dataProvider providerTruncate - */ - public function testTruncate($a, $b, $c, $d) - { - $this->assertEquals(String::truncate($a, $b, $c), $d); - } - - public function providerTruncate() - { - return array( - array('foo bar', 3, true, 'foo...'), - array('foo bar', 3, false, 'foo...'), - array('foo bar', 7, true, 'foo bar'), - array('foo bar', 8, true, 'foo bar'), - ); - } - - /** - * @dataProvider providerUpperWords - */ - public function testUpperWords($a, $b) - { - $this->assertEquals(String::upperWords($a), $b); - } - - public function providerUpperWords() - { - return array( - array('foo bar', 'Foo Bar'), - array('FOO BAR', 'Foo Bar'), - array('fOO bAR', 'Foo Bar'), - array('foo@bar.com', 'foo@bar.com'), - array('FOO@BAR.COM', 'FOO@BAR.COM'), - ); - } -} - -?>