1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-12 09:09:35 +01:00
parallel/test/Worker/TaskExceptionTest.php
2019-08-27 12:17:41 -05:00

24 lines
657 B
PHP

<?php
namespace Amp\Parallel\Test\Worker;
use Amp\Parallel\Worker\TaskException;
use Amp\PHPUnit\AsyncTestCase;
class TaskExceptionTest extends AsyncTestCase
{
public function testGetName()
{
$taskException = new TaskException('task_exception_name', 'task_exception_message', 'task_trace_message');
$this->assertSame('task_exception_name', $taskException->getName());
}
public function testGetWorkerTrace()
{
$taskException = new TaskException('task_exception_name', 'task_exception_message', 'task_trace_message');
$this->assertSame('task_trace_message', $taskException->getWorkerTrace());
}
}