1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-02 17:52:14 +01:00
parallel/test/Worker/TaskExceptionTest.php

24 lines
647 B
PHP
Raw Normal View History

2018-10-07 17:14:27 +02:00
<?php
namespace Amp\Parallel\Test\Worker;
use Amp\Parallel\Worker\TaskException;
use Amp\PHPUnit\TestCase;
class TaskExceptionTest extends TestCase
{
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());
}
}