mirror of
https://github.com/danog/parallel.git
synced 2024-12-02 17:52:14 +01:00
24 lines
647 B
PHP
24 lines
647 B
PHP
|
<?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());
|
||
|
}
|
||
|
}
|