MASConstraintDelegateMock.m
620 Bytes
//
// MASConstraintDelegate.m
// Masonry
//
// Created by Jonas Budelmann on 28/07/13.
// Copyright (c) 2013 Jonas Budelmann. All rights reserved.
//
#import "MASConstraintDelegateMock.h"
@implementation MASConstraintDelegateMock
- (id)init {
self = [super init];
if (!self) return nil;
self.constraints = NSMutableArray.new;
return self;
}
- (void)constraint:(id<MASConstraint>)constraint shouldBeReplacedWithConstraint:(id<MASConstraint>)replacementConstraint {
[self.constraints replaceObjectAtIndex:[self.constraints indexOfObject:constraint] withObject:replacementConstraint];
}
@end