TestServiceYFrog.php
| 1 | <?php |
| 2 | /** |
| 3 | * TestServiceYFrog.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 TestServiceYFrog extends TestProviders |
| 16 | { |
| 17 | protected $urls = array( |
| 18 | 'valid' => array( |
| 19 | 'http://yfrog.us/jukynnj', |
| 20 | 'http://twitter.yfrog.com/es3r8kzj', |
| 21 | 'http://twitter.yfrog.com/hws60ilj?sa=0', |
| 22 | 'http://yfrog.com/odxklwraj', |
| 23 | 'http://yfrog.com/odxklwraj?sa=0', |
| 24 | 'http://twitter.yfrog.com/h835endj', |
| 25 | 'http://yfrog.us/mryll1j', |
| 26 | 'http://twitter.yfrog.com/kex9kulj?sa=0', |
| 27 | ), |
| 28 | 'invalid' => array( |
| 29 | 'http://twitter.yfrog.com/user/IsabelVRuys/profile', |
| 30 | 'http://yfrog.com/about', |
| 31 | 'http://twitter.yfrog.com/', |
| 32 | 'http://yfrog.com/', |
| 33 | 'http://twitter.yfrog.com/page/faq', |
| 34 | 'http://blog.yfrog.com/jobs/', |
| 35 | 'http://twitter.yfrog.com/page/api', |
| 36 | ), |
| 37 | 'normalize' => array( |
| 38 | 'http://twitter.yfrog.com/hws60ilj?sa=0' => 'http://twitter.yfrog.com/hws60ilj', |
| 39 | 'http://twitter.yfrog.com/hws60ilj?sa=1' => 'http://twitter.yfrog.com/hws60ilj', |
| 40 | 'http://twitter.yfrog.com/hws60ilj?sa=0&stuff=stuff' => 'http://twitter.yfrog.com/hws60ilj', |
| 41 | ) |
| 42 | ); |
| 43 | |
| 44 | public function testProvider() { $this->validateProvider('YFrog'); } |
| 45 | } |
| 46 | ?> |
| 47 |