public function testProviderFetch() { $this->object->set('http://www.flickr.com/photos/potatojunkie/4518379530/'); $this->object->peek(); $data = $this->object->fetch(); $this->assertNotEmpty($data); $this->assertEquals('Flickr', $data['provider_name']); $this->assertEquals('1.0', $data['version']); $this->assertEquals('photo', $data['type']); }
public function testProviderFetch() { $this->object->set('http://en.blog.wordpress.com/2012/07/12/around-the-carousel-again/'); $this->object->peek(); $data = $this->object->fetch(); $this->assertNotEmpty($data); $this->assertEquals('WordPress.com News', $data['provider_name']); $this->assertEquals('1.0', $data['version']); $this->assertEquals('link', $data['type']); }