£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyʦ•ꎅȮFÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~芩ÊǍí`ÔÑ©ú뙵'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶êםӼ㞪éUWŸÈË%DÒÕ¬ï‘]/Åcx ‰ï2ß]ä6G[]S£Ôϯrs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ ¯¹ægƒÛowЍø^d™ý½ßB7áyMä9ÜÖUã !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --TEST-- Psr\Http\Message\StreamFactoryInterface --SKIPIF-- --FILE-- createStream(); var_dump($stream instanceof \Psr\Http\Message\StreamInterface); $factory->createStream('content'); $stream = $factory->createStreamFromFile('/tmp/file1'); var_dump($stream instanceof \Psr\Http\Message\StreamInterface); $factory->createStreamFromFile('/tmp/file2', 'wb'); $stream = $factory->createStreamFromResource(fopen('php://memory', 'r')); var_dump($stream instanceof \Psr\Http\Message\StreamInterface); --EXPECTF-- bool(true) array(1) { ["PsrExt\Http\Message\StreamFactoryInterface"]=> string(42) "PsrExt\Http\Message\StreamFactoryInterface" } string(33) "SampleStreamFactory::createStream" string(0) "" bool(true) string(33) "SampleStreamFactory::createStream" string(7) "content" string(41) "SampleStreamFactory::createStreamFromFile" string(10) "/tmp/file1" string(1) "r" bool(true) string(41) "SampleStreamFactory::createStreamFromFile" string(10) "/tmp/file2" string(2) "wb" string(45) "SampleStreamFactory::createStreamFromResource" resource(%d) of type (stream) bool(true)