assertFalse($constraint->isAlreadyRegistered('nonehere')); } public function testARegisteredAddressIsAlreadyRegistered() { $constraint = new NewEmail(self::$DI['app']); $this->assertTrue($constraint->isAlreadyRegistered(self::$DI['user']->getEmail())); } public function testNullIsNotAlreadyRegistered() { $constraint = new NewEmail(self::$DI['app']); $this->assertFalse($constraint->isAlreadyRegistered(null)); } public function testBlankIsNotAlreadyRegistered() { $constraint = new NewEmail(self::$DI['app']); $this->assertFalse($constraint->isAlreadyRegistered('')); } }