namespace Symfony\Component\Scheduler\Tests\Trigger;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Scheduler\Trigger\CallbackTrigger;
class CallbackTriggerTest extends TestCase
{ public function testToString() { $trigger =
new CallbackTrigger(fn () => null
);
$this->
assertMatchesRegularExpression('/^[\da-f]{32}$/',
(string) $trigger);
$trigger =
new CallbackTrigger(fn () => null, ''
);
$this->
assertSame('',
(string) $trigger);
$trigger =
new CallbackTrigger(fn () => null, 'foo'
);
$this->
assertSame('foo',
(string) $trigger);
}}