Files
parallel/test/Context/ForkContextTest.php
Daniil Gentili ec3d242b7c
Some checks failed
Continuous Integration / PHP 8.3 on Windows (push) Has been cancelled
Continuous Integration / PHP 8.3 on macOS (push) Has been cancelled
Continuous Integration / PHP 8.1 (push) Has been cancelled
Continuous Integration / PHP 8.2 (push) Has been cancelled
Continuous Integration / PHP 8.3 (push) Has been cancelled
Continuous Integration / PHP 8.4 (push) Has been cancelled
Continuous Integration / PHP 8.2 with ext-parallel (push) Has been cancelled
Continuous Integration / PHP 8.3 with ext-parallel (push) Has been cancelled
Continuous Integration / PHP 8.4 with ext-parallel (push) Has been cancelled
Fork context (#214)
* Skip another test

* cs-fix
2025-03-21 18:33:51 -05:00

38 lines
898 B
PHP

<?php declare(strict_types=1);
namespace Amp\Parallel\Test\Context;
use Amp\Parallel\Context\Context;
use Amp\Parallel\Context\ForkContext;
use Amp\Parallel\Context\ForkContextFactory;
class ForkContextTest extends AbstractContextTest
{
public function createContext(string|array $script): Context
{
if (!ForkContext::isSupported()) {
$this->markTestSkipped('Not supported on the current platform/driver');
}
return (new ForkContextFactory())->start($script);
}
public function testThrowingProcessOnReceive(): void
{
// tmp
$this->expectNotToPerformAssertions();
}
public function testThrowingProcessOnSend(): void
{
// tmp
$this->expectNotToPerformAssertions();
}
public function testImmediateJoin(): void
{
// tmp
$this->expectNotToPerformAssertions();
}
}