assertFalse($constraint->isAlreadyRegistered('nonehere@test.com')); } public function testARegisteredLoginIsAlreadyRegistered() { $constraint = new NewLogin(self::$DI['app']); $this->assertTrue($constraint->isAlreadyRegistered(self::$DI['user']->getLogin())); } public function testNullIsNotAlreadyRegistered() { $constraint = new NewLogin(self::$DI['app']); $this->assertFalse($constraint->isAlreadyRegistered(null)); } public function testBlankIsNotAlreadyRegistered() { $constraint = new NewLogin(self::$DI['app']); $this->assertFalse($constraint->isAlreadyRegistered('')); } }