55use Http \Message \MultipartStreamBuilder ;
66use Zend \Diactoros \Stream ;
77
8- class FunctionalTest extends \PHPUnit_Framework_TestCase
8+ /**
9+ * @author Tobias Nyholm <[email protected] > 10+ */
11+ class FunctionTest extends \PHPUnit_Framework_TestCase
912{
1013 public function testSupportStreams ()
1114 {
@@ -33,7 +36,7 @@ public function testSupportResources()
3336 public function testHeaders ()
3437 {
3538 $ builder = new MultipartStreamBuilder ();
36- $ builder ->addResource ('foobar ' , 'stream contents ' , ['headers ' => ['Content-Type ' => 'html/image ' , 'content-length ' => '4711 ' , 'CONTENT-DISPOSITION ' => 'none ' ]]);
39+ $ builder ->addResource ('foobar ' , 'stream contents ' , ['headers ' => ['Content-Type ' => 'html/image ' , 'content-length ' => '4711 ' , 'CONTENT-DISPOSITION ' => 'none ' ]]);
3740
3841 $ multipartStream = (string ) $ builder ->build ();
3942 $ this ->assertTrue (false !== strpos ($ multipartStream , 'Content-Type: html/image ' ));
@@ -72,7 +75,6 @@ public function testBoundary()
7275 $ multipartStream = (string ) $ builder ->build ();
7376 $ this ->assertEquals (2 , substr_count ($ multipartStream , $ boundary ));
7477
75-
7678 $ builder ->addResource ('content1 ' , 'string ' );
7779 $ builder ->addResource ('content2 ' , 'string ' );
7880 $ builder ->addResource ('content3 ' , 'string ' );
@@ -82,7 +84,7 @@ public function testBoundary()
8284 }
8385
8486 /**
85- * @param $body
87+ * @param string $body
8688 *
8789 * @return Stream
8890 */
@@ -94,4 +96,4 @@ private function createStream($body)
9496
9597 return $ stream ;
9698 }
97- }
99+ }
0 commit comments