Skip to content

Commit 8bf5ad2

Browse files
author
Dave Ross
committed
WordPress.tv unit test
1 parent 223e156 commit 8bf5ad2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/WordPressTest.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)