1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-03 10:07:49 +01:00
parallel/test/Sync/ExitSuccessTest.php

17 lines
315 B
PHP
Raw Normal View History

2017-12-14 06:06:38 +01:00
<?php
namespace Amp\Parallel\Test\Sync;
use Amp\Parallel\Sync\ExitSuccess;
use Amp\PHPUnit\TestCase;
2018-10-07 16:50:45 +02:00
class ExitSuccessTest extends TestCase
{
public function testGetResult()
{
2017-12-14 06:06:38 +01:00
$value = 1;
$result = new ExitSuccess($value);
$this->assertSame($value, $result->getResult());
}
}