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

17 lines
375 B
PHP
Raw Normal View History

2018-10-07 17:14:27 +02:00
<?php
namespace Amp\Parallel\Test\Worker;
use Amp\Parallel\Worker\TaskError;
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 TaskErrorTest extends AsyncTestCase
2018-10-07 17:14:27 +02:00
{
public function testGetWorkerTrace()
{
$taskError = new TaskError('name', 'error_message', 'error_message_trace');
$this->assertSame('error_message_trace', $taskError->getWorkerTrace());
}
}