Fiber example

namespace Symfony\Component\VarDumper\Tests\Caster;

use PHPUnit\Framework\TestCase;
use Symfony\Component\VarDumper\Test\VarDumperTestTrait;

class FiberCasterTest extends TestCase
{
    use VarDumperTestTrait;

    public function testCastFiberNotStarted()
    {
        $fiber = new \Fiber(static fn () => true);

        $expected = <<<EODUMP Fiber { status: "not started" } EODUMP;

        $this->assertDumpEquals($expected$fiber);
    }

    public function testCastFiberTerminated()
    {
Home | Imprint | This part of the site doesn't use cookies.