Skip to content

Commit 4e52b29

Browse files
committed
twitter test
1 parent 226041e commit 4e52b29

File tree

3 files changed

+58
-58
lines changed

3 files changed

+58
-58
lines changed

.travis.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
language: php
2-
sudo: false
3-
4-
php:
5-
- 5.4
6-
- 5.5
7-
- 5.6
8-
- 7.0
9-
- hhvm
10-
11-
matrix:
12-
allow_failures:
13-
- php: hhvm
14-
15-
before_install:
16-
- composer install
17-
18-
script:
19-
- './vendor/bin/phpunit'
20-
- './vendor/bin/php7cc ./src'
1+
language: php
2+
sudo: false
3+
4+
php:
5+
- 5.4
6+
- 5.5
7+
- 5.6
8+
- 7.0
9+
- hhvm
10+
11+
matrix:
12+
allow_failures:
13+
- php: hhvm
14+
15+
before_install:
16+
- composer install
17+
18+
script:
19+
- './vendor/bin/phpunit'
20+
- './vendor/bin/php7cc ./src'

composer.json

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
{
2-
"name": "embed/embed",
3-
"type": "library",
4-
"description": "PHP library to retrieve page info using oembed, opengraph, etc",
5-
"keywords": ["oembed", "opengraph", "twitter cards", "embed", "embedly"],
6-
"homepage": "https://github.com/oscarotero/Embed",
7-
"license": "MIT",
8-
"authors": [
9-
{
10-
"name": "Oscar Otero",
11-
"email": "[email protected]",
12-
"homepage": "http://oscarotero.com",
13-
"role": "Developer"
14-
}
15-
],
16-
"support": {
17-
"email": "[email protected]",
18-
"issues": "https://github.com/oscarotero/Embed/issues"
19-
},
20-
"require": {
21-
"php": ">=5.4.0",
22-
"ext-curl": "*"
23-
},
24-
"require-dev": {
25-
"phpunit/phpunit": "~4.0",
26-
"guzzlehttp/guzzle": "5.x",
27-
"sstalle/php7cc": "^1.0"
28-
},
29-
"suggest": {
30-
"guzzlehttp/[email protected]": "To use Guzzle5 request resolver"
31-
},
32-
"autoload": {
33-
"psr-4": {
34-
"Embed\\": "src"
35-
}
36-
}
37-
}
1+
{
2+
"name": "embed/embed",
3+
"type": "library",
4+
"description": "PHP library to retrieve page info using oembed, opengraph, etc",
5+
"keywords": ["oembed", "opengraph", "twitter cards", "embed", "embedly"],
6+
"homepage": "https://github.com/oscarotero/Embed",
7+
"license": "MIT",
8+
"authors": [
9+
{
10+
"name": "Oscar Otero",
11+
"email": "[email protected]",
12+
"homepage": "http://oscarotero.com",
13+
"role": "Developer"
14+
}
15+
],
16+
"support": {
17+
"email": "[email protected]",
18+
"issues": "https://github.com/oscarotero/Embed/issues"
19+
},
20+
"require": {
21+
"php": ">=5.4.0",
22+
"ext-curl": "*"
23+
},
24+
"require-dev": {
25+
"phpunit/phpunit": "~4.0",
26+
"guzzlehttp/guzzle": "5.x",
27+
"sstalle/php7cc": "^1.0"
28+
},
29+
"suggest": {
30+
"guzzlehttp/[email protected]": "To use Guzzle5 request resolver"
31+
},
32+
"autoload": {
33+
"psr-4": {
34+
"Embed\\": "src"
35+
}
36+
}
37+
}

tests/TwitterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public function testNormal()
77
$this->assertEmbed(
88
'https://twitter.com/pepephone/status/436461658601713664',
99
[
10-
'code' => '<blockquote class="twitter-tweet"><p>RT <a href="https://twitter.com/PabloHerreros">@PabloHerreros</a> Pepephone rompe la baraja - <a href="http://t.co/mFn7mcB1vy">http://t.co/mFn7mcB1vy</a></p>&mdash; pepephone (@pepephone) <a href="https://twitter.com/pepephone/status/436461658601713664">February 20, 2014</a></blockquote>'."\n".'<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>',
10+
'code' => '<blockquote class="twitter-tweet"><p lang="es" dir="ltr">RT <a href="https://twitter.com/PabloHerreros">@PabloHerreros</a> Pepephone rompe la baraja - <a href="http://t.co/mFn7mcB1vy">http://t.co/mFn7mcB1vy</a></p>&mdash; pepephone (@pepephone) <a href="https://twitter.com/pepephone/status/436461658601713664">February 20, 2014</a></blockquote> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>',
1111
]
1212
);
1313
}

0 commit comments

Comments
 (0)