public function testItWillAllowNullOrFailsIfDataIsInvalid() { $this->setExpectedException(\Exception::class); Assert::nullOrIsEmail('not-a-mail'); }