diff options
author | JulienMoumne <julien@piwik.org> | 2012-12-16 22:25:33 +0400 |
---|---|---|
committer | JulienMoumne <julien@piwik.org> | 2012-12-16 22:25:33 +0400 |
commit | c96242fb6856c3a90d3b9bad623fe8115a5288b0 (patch) | |
tree | c0ea9a344c5b568395e0050122df0c0134f34646 /plugins/MobileMessaging/SMSProvider/StubbedProvider.php | |
parent | f93f2d103755a03d3a02ecdaff02009a461b15c4 (diff) |
refs #3337#comment:7 remove white spaces in submitted phone number
git-svn-id: http://dev.piwik.org/svn/trunk@7639 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/MobileMessaging/SMSProvider/StubbedProvider.php')
-rw-r--r-- | plugins/MobileMessaging/SMSProvider/StubbedProvider.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/plugins/MobileMessaging/SMSProvider/StubbedProvider.php b/plugins/MobileMessaging/SMSProvider/StubbedProvider.php new file mode 100644 index 0000000000..dc31cf47a4 --- /dev/null +++ b/plugins/MobileMessaging/SMSProvider/StubbedProvider.php @@ -0,0 +1,35 @@ +<?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + * @version $Id$ + * + * @category Piwik_Plugins + * @package Piwik_MobileMessaging_SMSProvider + */ + +/** + * Used for testing + * + * @package Piwik_MobileMessaging_SMSProvider + */ +class Piwik_MobileMessaging_SMSProvider_StubbedProvider extends Piwik_MobileMessaging_SMSProvider +{ + + public function verifyCredential($apiKey) + { + return true; + } + + public function sendSMS($apiKey, $smsText, $phoneNumber, $from) + { + // nothing to do + } + + public function getCreditLeft($apiKey) + { + return 1; + } +}
\ No newline at end of file |