TestServiceTwitter.php
| 1 | <?php |
| 2 | /** |
| 3 | * TestServiceTwitter.php |
| 4 | * |
| 5 | * @package Tests |
| 6 | * @author Michael Pratt <pratt@hablarmierda.net> |
| 7 | * @link http://www.michael-pratt.com/ |
| 8 | * |
| 9 | * For the full copyright and license information, please view the LICENSE |
| 10 | * file that was distributed with this source code. |
| 11 | */ |
| 12 | |
| 13 | require_once 'TestProviders.php'; |
| 14 | |
| 15 | class TestServiceTwitter extends TestProviders |
| 16 | { |
| 17 | protected $urls = array( |
| 18 | 'valid' => array( |
| 19 | 'https://twitter.com/ThatKevinSmith/status/361972660344856576', |
| 20 | 'https://twitter.com/RalphGarman/status/363749205367472129/', |
| 21 | 'https://twitter.com/RalphGarman/status/363354457351782401', |
| 22 | 'http://twitter.com/#!RalphGarman/status/363326025834299393', |
| 23 | 'https://twitter.com/#!RalphGarman/status/362589356495605762/', |
| 24 | 'https://twitter.com/#!RalphGarman/status/362279899639197696' |
| 25 | ), |
| 26 | 'invalid' => array( |
| 27 | 'https://twitter.com/RalphGarman/statuses/363354457351782401', |
| 28 | 'https://twitter.com/#!RalphGarman/status/wordswordswords/', |
| 29 | 'https://twitter.com/status/363749205367472129/', |
| 30 | 'https://twitter.com/RalphGarman/363749205367472129/', |
| 31 | 'https://twitter.com/#!363749205367472129/', |
| 32 | 'https://twitter.com/363749205367472129/', |
| 33 | 'https://twitter.com/', |
| 34 | ), |
| 35 | 'normalize' => array( |
| 36 | 'https://twitter.com/#!RalphGarman/status/362589356495605762/' => 'https://twitter.com/RalphGarman/status/362589356495605762', |
| 37 | 'https://twitter.com/#!RalphGarman/status/362589356495605762' => 'https://twitter.com/RalphGarman/status/362589356495605762' |
| 38 | ) |
| 39 | ); |
| 40 | |
| 41 | public function testProvider() { $this->validateProvider('Twitter'); } |
| 42 | } |
| 43 | ?> |
| 44 |