Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Creates a temporary file
<?php tmpfile(): resource|false
<?php     public function testStaticAddReadStreamCallsAddReadStreamOnLoopInstance()

    {

        $stream = tmpfile();

        $listener = function () { };



        $loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock();
<?php     public function testStaticAddWriteStreamCallsAddWriteStreamOnLoopInstance()

    {

        $stream = tmpfile();

        $listener = function () { };



        $loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock();
<?php     public function testStaticRemoveReadStreamCallsRemoveReadStreamOnLoopInstance()

    {

        $stream = tmpfile();



        $loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock();

        $loop->expects($this->once())->method('removeReadStream')->with($stream);
<?php     public function testStaticRemoveWriteStreamCallsRemoveWriteStreamOnLoopInstance()

    {

        $stream = tmpfile();



        $loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock();

        $loop->expects($this->once())->method('removeWriteStream')->with($stream);