Skip to content

Commit 1a9b2e7

Browse files
authored
Merge pull request facebookarchive#629 from SammyK/finish-599
Finishes off facebookarchive#599
2 parents 59750b8 + 5fc7fb0 commit 1a9b2e7

File tree

4 files changed

+2
-12
lines changed

4 files changed

+2
-12
lines changed

src/Facebook/autoload.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@
3232
throw new Exception('The Facebook SDK requires PHP version 5.4 or higher.');
3333
}
3434

35-
if (defined('FACEBOOK_SDK_POLYFILLS_LOADED') === false) {
36-
require_once __DIR__ . 'polyfills.php';
37-
}
35+
require_once __DIR__ . 'polyfills.php';
3836

3937
/**
4038
* Register the autoloader for the Facebook SDK classes.

src/Facebook/polyfills.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
*
2323
*/
2424

25-
define('FACEBOOK_SDK_POLYFILLS_LOADED', 1);
26-
2725
/**
2826
* @see https://github.com/sarciszewski/php-future/blob/master/src/Security.php#L37-L51
2927
*/

tests/FacebookTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,6 @@ class FacebookTest extends \PHPUnit_Framework_TestCase
4141
'app_secret' => 'foo_secret',
4242
];
4343

44-
public function testLoadPolyfills()
45-
{
46-
$this->assertEquals(true, defined('FACEBOOK_SDK_POLYFILLS_LOADED'));
47-
$this->assertEquals(1, FACEBOOK_SDK_POLYFILLS_LOADED);
48-
}
49-
5044
/**
5145
* @expectedException \Facebook\Exceptions\FacebookSDKException
5246
*/

tests/HttpClients/FacebookStreamHttpClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function testCanSendNormalRequest()
9595
$this->streamMock
9696
->shouldReceive('getResponseHeaders')
9797
->once()
98-
->andReturn(explode(PHP_EOL, trim($this->fakeRawHeader)));
98+
->andReturn(explode("\n", trim($this->fakeRawHeader)));
9999
$this->streamMock
100100
->shouldReceive('fileGetContents')
101101
->once()

0 commit comments

Comments
 (0)