public function testShouldAssertRuleWhenInputIsNotOptional()
{
$input = 'foo';
$validatable = $this->createMock(Validatable::class);
$validatable->expects($this->once())->method('assert')->with($input)->will($this->returnValue(true));
$rule = new Optional($validatable);
$this->assertTrue($rule->assert($input));
}