mirror of
https://github.com/danog/parallel.git
synced 2024-12-12 09:09:35 +01:00
17 lines
375 B
PHP
17 lines
375 B
PHP
<?php
|
|
|
|
namespace Amp\Parallel\Test\Worker;
|
|
|
|
use Amp\Parallel\Worker\TaskError;
|
|
use Amp\PHPUnit\AsyncTestCase;
|
|
|
|
class TaskErrorTest extends AsyncTestCase
|
|
{
|
|
public function testGetWorkerTrace()
|
|
{
|
|
$taskError = new TaskError('name', 'error_message', 'error_message_trace');
|
|
|
|
$this->assertSame('error_message_trace', $taskError->getWorkerTrace());
|
|
}
|
|
}
|