assertTrue($this->validate(self::RULE, 'myemail@host.com')); } public function testFailure() { $this->assertNotTrue($this->validate(self::RULE, 's0meth1ng-notEmail\r')); } public function testWhenInputIsEmptyAndNotRequiredIsSuccess() { $this->assertTrue($this->validate(self::RULE, '')); } }