We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 223e156 commit 8bf5ad2Copy full SHA for 8bf5ad2
tests/WordPressTest.php
@@ -0,0 +1,16 @@
1
+<?php
2
+class WordPressTest extends PHPUnit_Framework_TestCase
3
+{
4
+ public function testOne()
5
+ {
6
+ $info = Embed\Embed::create('http://wordpress.tv/2013/09/06/dave-ross-optimize-image-files-like-a-pro/');
7
+
8
+ $this->assertEquals($info->title, 'Dave Ross: Optimize Image Files Like a Pro');
9
+ $this->assertEquals($info->imageWidth, 400);
10
+ $this->assertEquals($info->imageHeight, 224);
11
+ $this->assertEquals($info->type, 'video');
12
+ $this->assertEquals($info->authorName, '@WordPressTV');
13
+ $this->assertEquals($info->providerName, 'WordPress.tv');
14
+ $this->assertEquals($info->providerUrl, 'http://wordpress.tv');
15
+ }
16
+}
0 commit comments