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

24 lines
657 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;
2019-08-27 19:17:41 +02:00
use Amp\PHPUnit\AsyncTestCase;
2018-10-07 17:14:27 +02:00
2019-08-27 19:17:41 +02:00
class TaskExceptionTest extends AsyncTestCase
2018-10-07 17:14:27 +02:00
{
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());
}
}