public function testShouldNotAssertRuleWhenInputIsOptional() { $validatable = $this->createMock(Validatable::class); $validatable->expects($this->never())->method('assert'); $rule = new Optional($validatable); $this->assertTrue($rule->assert('')); }