2022-12-24 14:36:39 +01:00
|
|
|
<?php declare(strict_types=1);
|
2020-07-21 19:12:11 +02:00
|
|
|
/**
|
|
|
|
* Exception test trait.
|
|
|
|
*
|
|
|
|
* @author Daniil Gentili <daniil@daniil.it>
|
|
|
|
* @copyright 2016-2020 Daniil Gentili <daniil@daniil.it>
|
|
|
|
* @license https://opensource.org/licenses/MIT MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace danog\Loop\Test\Traits;
|
|
|
|
|
|
|
|
trait BasicException
|
|
|
|
{
|
|
|
|
use Basic;
|
|
|
|
/**
|
|
|
|
* Loop implementation.
|
|
|
|
*
|
|
|
|
*/
|
2022-12-24 15:03:00 +01:00
|
|
|
public function loop(): void
|
2020-07-21 19:12:11 +02:00
|
|
|
{
|
|
|
|
$this->inited = true;
|
|
|
|
throw new \RuntimeException('Threw exception!');
|
|
|
|
$this->ran = true;
|
|
|
|
}
|
|
|
|
}
|