assertTrue(valid_email_regex('ken@spaz.org')); } public function testGoodEmail2() { $this->assertTrue(valid_email_regex('ken@restivo.org')); } public function testGoodEmail3() { $this->assertTrue(valid_email_regex('nobody@hubzilla.com')); } public function testBadEmail() { $this->assertFalse(valid_email_regex('nobody!uses!these!any.more')); } }