From 565f86f30d9d9ef5ba6b9993e51a99affa98e14d Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Mon, 14 Oct 2013 17:53:02 -0700 Subject: [PATCH] Fix stream context option test to really only verify content-type is last --- tests/Composer/Test/Util/StreamContextFactoryTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Composer/Test/Util/StreamContextFactoryTest.php b/tests/Composer/Test/Util/StreamContextFactoryTest.php index a12419afa..9e1bae090 100644 --- a/tests/Composer/Test/Util/StreamContextFactoryTest.php +++ b/tests/Composer/Test/Util/StreamContextFactoryTest.php @@ -192,6 +192,6 @@ class StreamContextFactoryTest extends \PHPUnit_Framework_TestCase ); $context = StreamContextFactory::getContext('http://example.org', $options); $ctxoptions = stream_context_get_options($context); - $this->assertEquals(join("\n", $ctxoptions['http']['header']), join("\n", $expectedOptions['http']['header'])); + $this->assertEquals(end($ctxoptions['http']['header']), end($expectedOptions['http']['header'])); } }