1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-13 09:37:26 +01:00
parallel/test/Worker/TaskErrorTest.php

17 lines
365 B
PHP
Raw Normal View History

2018-10-07 17:14:27 +02:00
<?php
namespace Amp\Parallel\Test\Worker;
use Amp\Parallel\Worker\TaskError;
use Amp\PHPUnit\TestCase;
class TaskErrorTest extends TestCase
{
public function testGetWorkerTrace()
{
$taskError = new TaskError('name', 'error_message', 'error_message_trace');
$this->assertSame('error_message_trace', $taskError->getWorkerTrace());
}
}