TestServiceAmCharts.php
| 1 | <?php |
| 2 | /** |
| 3 | * TestServiceAmCharts.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 TestServiceAmCharts extends TestProviders |
| 16 | { |
| 17 | protected $urls = array( |
| 18 | 'valid' => array( |
| 19 | 'http://live.amcharts.com/NkMTE/', |
| 20 | 'http://live.amcharts.com/NjEwN', |
| 21 | 'http://live.amcharts.com/c1MGE/', |
| 22 | 'http://live.amcharts.com/hlOWI', |
| 23 | 'http://live.amcharts.com/TY1Yj/', |
| 24 | 'http://live.amcharts.com/zkyZm/edit/', |
| 25 | 'https://live.amcharts.com/YjRlZ/edit/', |
| 26 | 'http://live.amcharts.com/GIyNz/edit', |
| 27 | 'http://live.amcharts.com/DdmMD/', |
| 28 | ), |
| 29 | 'invalid' => array( |
| 30 | 'http://live.amcharts.com/new/', |
| 31 | 'http://live.amcharts.com/new/edit', |
| 32 | 'http://live.amcharts.com/', |
| 33 | ), |
| 34 | 'normalize' => array( |
| 35 | 'http://live.amcharts.com/hlOWI' => 'http://live.amcharts.com/hlOWI/', |
| 36 | 'http://live.amcharts.com/TY1Yj/' => 'http://live.amcharts.com/TY1Yj/', |
| 37 | 'http://live.amcharts.com/zkyZm/edit/' => 'http://live.amcharts.com/zkyZm/', |
| 38 | 'http://live.amcharts.com/TY1Yj/edit/stuff' => 'http://live.amcharts.com/TY1Yj/', |
| 39 | ), |
| 40 | 'fake' => array( |
| 41 | 'type' => 'rich', |
| 42 | 'html' => '<iframe' |
| 43 | ) |
| 44 | ); |
| 45 | |
| 46 | public function testProvider() { $this->validateProvider('AmCharts'); } |
| 47 | } |
| 48 | ?> |
| 49 |