for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Spiral Framework.
*
* @license MIT
* @author Anton Titov (Wolfy-J)
*/
declare(strict_types=1);
namespace Spiral\Jobs\Tests;
use PHPUnit\Framework\TestCase;
use Spiral\Jobs\Options;
class OptionsTest extends TestCase
{
public function testDelay(): void
$o = new Options();
$this->assertNull($o->getDelay());
$o = $o->withDelay(10);
$this->assertSame(10, $o->getDelay());
}
public function testPipeline(): void
$this->assertNull($o->getPipeline());
$o = $o->withPipeline('custom');
$this->assertSame('custom', $o->getPipeline());