This commit is contained in:
giuseppenuc committed 2016-02-24 16:56:39 +01:00
1 parent d281d765ea
commit 5b074a5176
1261 files changed
+199158 -7303

No files matched your search

@@ -0,0 +1,270 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
0817B62B147ED03A00C5401D /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0817B62A147ED03A00C5401D /* SenTestingKit.framework */; };
089BA20D1298F19A00D4F34F /* IsGivenDayOfWeek.m in Sources */ = {isa = PBXBuildFile; fileRef = 089BA20C1298F19A00D4F34F /* IsGivenDayOfWeek.m */; };
08B5196E12A0678400147210 /* OCHamcrest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 08B5196D12A0678400147210 /* OCHamcrest.framework */; };
08B51A4D12A0688B00147210 /* OCHamcrest.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 08B5196D12A0678400147210 /* OCHamcrest.framework */; };
0FC264990DA88F1100B4CD6B /* SampleTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 0FC264980DA88F1100B4CD6B /* SampleTest.m */; };
/* End PBXBuildFile section */
/* Begin PBXCopyFilesBuildPhase section */
08B5189B12A0642100147210 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 16;
files = (
08B51A4D12A0688B00147210 /* OCHamcrest.framework in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
0817B62A147ED03A00C5401D /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; };
089BA20B1298F19A00D4F34F /* IsGivenDayOfWeek.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IsGivenDayOfWeek.h; sourceTree = "<group>"; usesTabs = 0; };
089BA20C1298F19A00D4F34F /* IsGivenDayOfWeek.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = IsGivenDayOfWeek.m; sourceTree = "<group>"; usesTabs = 0; };
08B5196D12A0678400147210 /* OCHamcrest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OCHamcrest.framework; path = ../../OCHamcrest.framework; sourceTree = SOURCE_ROOT; };
0FC2648E0DA88ECB00B4CD6B /* Example.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Example.octest; sourceTree = BUILT_PRODUCTS_DIR; };
0FC264900DA88ECB00B4CD6B /* Example-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Example-Info.plist"; sourceTree = "<group>"; };
0FC264980DA88F1100B4CD6B /* SampleTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SampleTest.m; sourceTree = "<group>"; usesTabs = 0; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
0FC2648B0DA88ECB00B4CD6B /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
08B5196E12A0678400147210 /* OCHamcrest.framework in Frameworks */,
0817B62B147ED03A00C5401D /* SenTestingKit.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
0FC264760DA88EAA00B4CD6B = {
isa = PBXGroup;
children = (
089BA20B1298F19A00D4F34F /* IsGivenDayOfWeek.h */,
089BA20C1298F19A00D4F34F /* IsGivenDayOfWeek.m */,
0FC264980DA88F1100B4CD6B /* SampleTest.m */,
0FC2658B0DA8981900B4CD6B /* Resources */,
0FC2658F0DA8983200B4CD6B /* Frameworks */,
0FC2648F0DA88ECB00B4CD6B /* Products */,
);
sourceTree = "<group>";
};
0FC2648F0DA88ECB00B4CD6B /* Products */ = {
isa = PBXGroup;
children = (
0FC2648E0DA88ECB00B4CD6B /* Example.octest */,
);
name = Products;
sourceTree = "<group>";
};
0FC2658B0DA8981900B4CD6B /* Resources */ = {
isa = PBXGroup;
children = (
0FC264900DA88ECB00B4CD6B /* Example-Info.plist */,
);
name = Resources;
sourceTree = "<group>";
};
0FC2658F0DA8983200B4CD6B /* Frameworks */ = {
isa = PBXGroup;
children = (
0817B62A147ED03A00C5401D /* SenTestingKit.framework */,
08B5196D12A0678400147210 /* OCHamcrest.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
0FC2648D0DA88ECB00B4CD6B /* Example */ = {
isa = PBXNativeTarget;
buildConfigurationList = 0FC264940DA88ECB00B4CD6B /* Build configuration list for PBXNativeTarget "Example" */;
buildPhases = (
0FC2648A0DA88ECB00B4CD6B /* Sources */,
0FC2648B0DA88ECB00B4CD6B /* Frameworks */,
08B5189B12A0642100147210 /* CopyFiles */,
0FC2648C0DA88ECB00B4CD6B /* ShellScript */,
);
buildRules = (
);
dependencies = (
);
name = Example;
productName = Example;
productReference = 0FC2648E0DA88ECB00B4CD6B /* Example.octest */;
productType = "com.apple.product-type.bundle";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
0FC264780DA88EAA00B4CD6B /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0450;
};
buildConfigurationList = 0FC2647B0DA88EAA00B4CD6B /* Build configuration list for PBXProject "CustomDateMatcher" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
Japanese,
French,
German,
);
mainGroup = 0FC264760DA88EAA00B4CD6B;
productRefGroup = 0FC2648F0DA88ECB00B4CD6B /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
0FC2648D0DA88ECB00B4CD6B /* Example */,
);
};
/* End PBXProject section */
/* Begin PBXShellScriptBuildPhase section */
0FC2648C0DA88ECB00B4CD6B /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n";
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
0FC2648A0DA88ECB00B4CD6B /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
0FC264990DA88F1100B4CD6B /* SampleTest.m in Sources */,
089BA20D1298F19A00D4F34F /* IsGivenDayOfWeek.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
0FC264790DA88EAA00B4CD6B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
CLANG_WARN_OBJCPP_ARC_ABI = YES;
COPY_PHASE_STRIP = NO;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
};
name = Debug;
};
0FC2647A0DA88EAA00B4CD6B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
CLANG_WARN_OBJCPP_ARC_ABI = YES;
COPY_PHASE_STRIP = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
};
name = Release;
};
0FC264920DA88ECB00B4CD6B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_OBJC_ARC = YES;
COMBINE_HIDPI_IMAGES = YES;
COPY_PHASE_STRIP = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(DEVELOPER_LIBRARY_DIR)/Frameworks",
"$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)",
);
FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/../..\"";
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_MODEL_TUNING = G5;
GCC_OPTIMIZATION_LEVEL = 0;
INFOPLIST_FILE = "Example-Info.plist";
INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles";
OTHER_LDFLAGS = (
"-framework",
Foundation,
"-framework",
SenTestingKit,
);
PRODUCT_NAME = Example;
WRAPPER_EXTENSION = octest;
};
name = Debug;
};
0FC264930DA88ECB00B4CD6B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_OBJC_ARC = YES;
COMBINE_HIDPI_IMAGES = YES;
COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
FRAMEWORK_SEARCH_PATHS = (
"$(DEVELOPER_LIBRARY_DIR)/Frameworks",
"$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)",
);
FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/../..\"";
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_MODEL_TUNING = G5;
INFOPLIST_FILE = "Example-Info.plist";
INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles";
OTHER_LDFLAGS = (
"-framework",
Foundation,
"-framework",
SenTestingKit,
);
PRODUCT_NAME = Example;
WRAPPER_EXTENSION = octest;
ZERO_LINK = NO;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
0FC2647B0DA88EAA00B4CD6B /* Build configuration list for PBXProject "CustomDateMatcher" */ = {
isa = XCConfigurationList;
buildConfigurations = (
0FC264790DA88EAA00B4CD6B /* Debug */,
0FC2647A0DA88EAA00B4CD6B /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
0FC264940DA88ECB00B4CD6B /* Build configuration list for PBXNativeTarget "Example" */ = {
isa = XCConfigurationList;
buildConfigurations = (
0FC264920DA88ECB00B4CD6B /* Debug */,
0FC264930DA88ECB00B4CD6B /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 0FC264780DA88EAA00B4CD6B /* Project object */;
}
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.hamcrest.Example</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
</dict>
</plist>
@@ -0,0 +1,17 @@
#import <OCHamcrest/HCBaseMatcher.h>
#import <objc/objc-api.h>
// Matches dates that fall on a given day of the week.
@interface IsGivenDayOfWeek : HCBaseMatcher
{
NSInteger day; // Sunday is 0, Saturday is 6
}
+ (id)isGivenDayOfWeek:(NSInteger)dayOfWeek;
- (id)initWithDay:(NSInteger)dayOfWeek;
@end
// Factory function to generate Saturday matcher.
OBJC_EXPORT id <HCMatcher> onASaturday();
@@ -0,0 +1,42 @@
#import "IsGivenDayOfWeek.h"
#import <OCHamcrest/HCDescription.h>
@implementation IsGivenDayOfWeek
+ (id)isGivenDayOfWeek:(NSInteger)dayOfWeek
{
return [[self alloc] initWithDay:dayOfWeek];
}
- (id)initWithDay:(NSInteger)dayOfWeek
{
self = [super init];
if (self)
day = dayOfWeek;
return self;
}
// Test whether item matches.
- (BOOL)matches:(id)item
{
if (![item respondsToSelector:@selector(dayOfWeek)])
return NO;
return [item dayOfWeek] == day;
}
// Describe the matcher.
- (void)describeTo:(id <HCDescription>)description
{
NSString* dayAsString[] =
{ @"Sunday", @"Monday", @"Tuesday", @"Wednesday", @"Thursday", @"Friday", @"Saturday" };
[[description appendText:@"calendar date falling on "] appendText:dayAsString[day]];
}
@end
id <HCMatcher> onASaturday()
{
return [IsGivenDayOfWeek isGivenDayOfWeek:6];
}
@@ -0,0 +1,34 @@
#import <SenTestingKit/SenTestingKit.h>
#define HC_SHORTHAND
#import <OCHamcrest/OCHamcrest.h>
#import "IsGivenDayOfWeek.h"
@interface SampleTest : SenTestCase
@end
@implementation SampleTest
- (void)testDateIsOnASaturday
{
// Example of a successful match.
NSCalendarDate* date = [NSCalendarDate dateWithString:@"26 Apr 2008" calendarFormat:@"%d %b %Y"];
assertThat(date, is(onASaturday()));
}
- (void)testFailsWithMismatchedDate
{
// Example of what happens with date that doesn't match.
NSCalendarDate* date = [NSCalendarDate dateWithString:@"06 Apr 2008" calendarFormat:@"%d %b %Y"];
assertThat(date, is(onASaturday()));
}
- (void)testFailsWithNonDate
{
// Example of what happens with object that isn't a date.
NSString* nonDate = @"oops";
assertThat(nonDate, is(onASaturday()));
}
@end
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.hamcrest.Example</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
</dict>
</plist>
@@ -0,0 +1,24 @@
#import <SenTestingKit/SenTestingKit.h>
#define HC_SHORTHAND
#import <OCHamcrest/OCHamcrest.h>
@interface Example : SenTestCase
@end
@implementation Example
- (void)testUsingAssertThat
{
assertThat(@"xx", is(@"xx"));
assertThat(@"yy", isNot(@"xx"));
assertThat(@"i like cheese", containsString(@"cheese"));
}
- (void)testUsingNumbers
{
assertThatInt(42, is(@42));
assertThatUnsignedShort(6 * 9, isNot(@42U));
}
@end
@@ -0,0 +1,251 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
0817B622147ECFFC00C5401D /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0817B621147ECFFC00C5401D /* SenTestingKit.framework */; };
08B519DB12A0681600147210 /* OCHamcrest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 08B519DA12A0681600147210 /* OCHamcrest.framework */; };
08B519DC12A0682300147210 /* OCHamcrest.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 08B519DA12A0681600147210 /* OCHamcrest.framework */; };
0FC264990DA88F1100B4CD6B /* Example.m in Sources */ = {isa = PBXBuildFile; fileRef = 0FC264980DA88F1100B4CD6B /* Example.m */; };
/* End PBXBuildFile section */
/* Begin PBXCopyFilesBuildPhase section */
08B518CA12A065C700147210 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 16;
files = (
08B519DC12A0682300147210 /* OCHamcrest.framework in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
0817B621147ECFFC00C5401D /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; };
08B519DA12A0681600147210 /* OCHamcrest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OCHamcrest.framework; path = ../../OCHamcrest.framework; sourceTree = SOURCE_ROOT; };
0FC2648E0DA88ECB00B4CD6B /* Example.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Example.octest; sourceTree = BUILT_PRODUCTS_DIR; };
0FC264900DA88ECB00B4CD6B /* Example-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Example-Info.plist"; sourceTree = "<group>"; };
0FC264980DA88F1100B4CD6B /* Example.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Example.m; sourceTree = "<group>"; usesTabs = 0; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
0FC2648B0DA88ECB00B4CD6B /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
08B519DB12A0681600147210 /* OCHamcrest.framework in Frameworks */,
0817B622147ECFFC00C5401D /* SenTestingKit.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
0FC264760DA88EAA00B4CD6B = {
isa = PBXGroup;
children = (
0FC264980DA88F1100B4CD6B /* Example.m */,
0FC2658B0DA8981900B4CD6B /* Resources */,
0FC2658F0DA8983200B4CD6B /* Frameworks */,
0FC2648F0DA88ECB00B4CD6B /* Products */,
);
sourceTree = "<group>";
};
0FC2648F0DA88ECB00B4CD6B /* Products */ = {
isa = PBXGroup;
children = (
0FC2648E0DA88ECB00B4CD6B /* Example.octest */,
);
name = Products;
sourceTree = "<group>";
};
0FC2658B0DA8981900B4CD6B /* Resources */ = {
isa = PBXGroup;
children = (
0FC264900DA88ECB00B4CD6B /* Example-Info.plist */,
);
name = Resources;
sourceTree = "<group>";
};
0FC2658F0DA8983200B4CD6B /* Frameworks */ = {
isa = PBXGroup;
children = (
0817B621147ECFFC00C5401D /* SenTestingKit.framework */,
08B519DA12A0681600147210 /* OCHamcrest.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
0FC2648D0DA88ECB00B4CD6B /* Example */ = {
isa = PBXNativeTarget;
buildConfigurationList = 0FC264940DA88ECB00B4CD6B /* Build configuration list for PBXNativeTarget "Example" */;
buildPhases = (
0FC2648A0DA88ECB00B4CD6B /* Sources */,
0FC2648B0DA88ECB00B4CD6B /* Frameworks */,
08B518CA12A065C700147210 /* CopyFiles */,
0FC2648C0DA88ECB00B4CD6B /* ShellScript */,
);
buildRules = (
);
dependencies = (
);
name = Example;
productName = Example;
productReference = 0FC2648E0DA88ECB00B4CD6B /* Example.octest */;
productType = "com.apple.product-type.bundle";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
0FC264780DA88EAA00B4CD6B /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0420;
};
buildConfigurationList = 0FC2647B0DA88EAA00B4CD6B /* Build configuration list for PBXProject "MacExample" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
Japanese,
French,
German,
);
mainGroup = 0FC264760DA88EAA00B4CD6B;
productRefGroup = 0FC2648F0DA88ECB00B4CD6B /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
0FC2648D0DA88ECB00B4CD6B /* Example */,
);
};
/* End PBXProject section */
/* Begin PBXShellScriptBuildPhase section */
0FC2648C0DA88ECB00B4CD6B /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n";
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
0FC2648A0DA88ECB00B4CD6B /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
0FC264990DA88F1100B4CD6B /* Example.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
0FC264790DA88EAA00B4CD6B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
COPY_PHASE_STRIP = NO;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
};
name = Debug;
};
0FC2647A0DA88EAA00B4CD6B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
COPY_PHASE_STRIP = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
};
name = Release;
};
0FC264920DA88ECB00B4CD6B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_OBJC_ARC = YES;
COPY_PHASE_STRIP = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(DEVELOPER_LIBRARY_DIR)/Frameworks",
"$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)",
);
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
INFOPLIST_FILE = "Example-Info.plist";
INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles";
OTHER_LDFLAGS = (
"-framework",
Foundation,
);
PRODUCT_NAME = Example;
WRAPPER_EXTENSION = octest;
};
name = Debug;
};
0FC264930DA88ECB00B4CD6B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_OBJC_ARC = YES;
COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
FRAMEWORK_SEARCH_PATHS = (
"$(DEVELOPER_LIBRARY_DIR)/Frameworks",
"$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)",
);
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
INFOPLIST_FILE = "Example-Info.plist";
INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles";
OTHER_LDFLAGS = (
"-framework",
Foundation,
);
PRODUCT_NAME = Example;
WRAPPER_EXTENSION = octest;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
0FC2647B0DA88EAA00B4CD6B /* Build configuration list for PBXProject "MacExample" */ = {
isa = XCConfigurationList;
buildConfigurations = (
0FC264790DA88EAA00B4CD6B /* Debug */,
0FC2647A0DA88EAA00B4CD6B /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
0FC264940DA88ECB00B4CD6B /* Build configuration list for PBXNativeTarget "Example" */ = {
isa = XCConfigurationList;
buildConfigurations = (
0FC264920DA88ECB00B4CD6B /* Debug */,
0FC264930DA88ECB00B4CD6B /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 0FC264780DA88EAA00B4CD6B /* Project object */;
}
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>com.yourcompany.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
</dict>
</plist>
@@ -0,0 +1,24 @@
#import <SenTestingKit/SenTestingKit.h>
#define HC_SHORTHAND
#import <OCHamcrestIOS/OCHamcrestIOS.h>
@interface Example : SenTestCase
@end
@implementation Example
- (void)testUsingAssertThat
{
assertThat(@"xx", is(@"xx"));
assertThat(@"yy", isNot(@"xx"));
assertThat(@"I like cheese", containsString(@"cheese"));
}
- (void)testUsingNumbers
{
assertThatInt(42, is(@42));
assertThatUnsignedShort(6 * 9, isNot(@42U));
}
@end
@@ -0,0 +1,238 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 45;
objects = {
/* Begin PBXBuildFile section */
0817B615147ECF5500C5401D /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0817B614147ECF5500C5401D /* SenTestingKit.framework */; };
087F064E151C2E150030C044 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 087F064D151C2E150030C044 /* Foundation.framework */; };
089B9DED1298DB1100D4F34F /* Example.m in Sources */ = {isa = PBXBuildFile; fileRef = 089B9DEC1298DB1100D4F34F /* Example.m */; };
08B51A8712A068BC00147210 /* OCHamcrestIOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 08B51A8612A068BC00147210 /* OCHamcrestIOS.framework */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
0817B614147ECF5500C5401D /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; };
087F064D151C2E150030C044 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
089B9DC71298DA0B00D4F34F /* Example.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Example.octest; sourceTree = BUILT_PRODUCTS_DIR; };
089B9DC81298DA0B00D4F34F /* Example-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Example-Info.plist"; sourceTree = "<group>"; };
089B9DEC1298DB1100D4F34F /* Example.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Example.m; sourceTree = "<group>"; usesTabs = 0; };
08B51A8612A068BC00147210 /* OCHamcrestIOS.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OCHamcrestIOS.framework; path = ../../OCHamcrestIOS.framework; sourceTree = SOURCE_ROOT; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
089B9DC41298DA0B00D4F34F /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
087F064E151C2E150030C044 /* Foundation.framework in Frameworks */,
0817B615147ECF5500C5401D /* SenTestingKit.framework in Frameworks */,
08B51A8712A068BC00147210 /* OCHamcrestIOS.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
034768DFFF38A50411DB9C8B /* Products */ = {
isa = PBXGroup;
children = (
089B9DC71298DA0B00D4F34F /* Example.octest */,
);
name = Products;
sourceTree = "<group>";
};
0867D691FE84028FC02AAC07 /* iOSExample */ = {
isa = PBXGroup;
children = (
089B9DEC1298DB1100D4F34F /* Example.m */,
089B9F4B1298DE6400D4F34F /* Resources */,
0867D69AFE84028FC02AAC07 /* Frameworks */,
034768DFFF38A50411DB9C8B /* Products */,
);
name = iOSExample;
sourceTree = "<group>";
};
0867D69AFE84028FC02AAC07 /* Frameworks */ = {
isa = PBXGroup;
children = (
087F064D151C2E150030C044 /* Foundation.framework */,
0817B614147ECF5500C5401D /* SenTestingKit.framework */,
08B51A8612A068BC00147210 /* OCHamcrestIOS.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
089B9F4B1298DE6400D4F34F /* Resources */ = {
isa = PBXGroup;
children = (
089B9DC81298DA0B00D4F34F /* Example-Info.plist */,
);
name = Resources;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
089B9DC61298DA0B00D4F34F /* Example */ = {
isa = PBXNativeTarget;
buildConfigurationList = 089B9DCC1298DA0C00D4F34F /* Build configuration list for PBXNativeTarget "Example" */;
buildPhases = (
089B9DC31298DA0B00D4F34F /* Sources */,
089B9DC41298DA0B00D4F34F /* Frameworks */,
089B9DC51298DA0B00D4F34F /* ShellScript */,
);
buildRules = (
);
dependencies = (
);
name = Example;
productName = Example;
productReference = 089B9DC71298DA0B00D4F34F /* Example.octest */;
productType = "com.apple.product-type.bundle";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
0867D690FE84028FC02AAC07 /* Project object */ = {
isa = PBXProject;
buildConfigurationList = 1DEB922208733DC00010E9CD /* Build configuration list for PBXProject "iOSExample" */;
compatibilityVersion = "Xcode 3.1";
developmentRegion = English;
hasScannedForEncodings = 1;
knownRegions = (
English,
Japanese,
French,
German,
);
mainGroup = 0867D691FE84028FC02AAC07 /* iOSExample */;
productRefGroup = 034768DFFF38A50411DB9C8B /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
089B9DC61298DA0B00D4F34F /* Example */,
);
};
/* End PBXProject section */
/* Begin PBXShellScriptBuildPhase section */
089B9DC51298DA0B00D4F34F /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n";
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
089B9DC31298DA0B00D4F34F /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
089B9DED1298DB1100D4F34F /* Example.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
089B9DCA1298DA0C00D4F34F /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
COPY_PHASE_STRIP = NO;
FRAMEWORK_SEARCH_PATHS = (
"\"$(SDKROOT)/Developer/Library/Frameworks\"",
"\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"",
"\"$(SRCROOT)/../..\"",
);
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_OPTIMIZATION_LEVEL = 0;
INFOPLIST_FILE = "Example-Info.plist";
PRODUCT_NAME = Example;
WRAPPER_EXTENSION = octest;
};
name = Debug;
};
089B9DCB1298DA0C00D4F34F /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
FRAMEWORK_SEARCH_PATHS = (
"\"$(SDKROOT)/Developer/Library/Frameworks\"",
"\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"",
"\"$(SRCROOT)/../..\"",
);
GCC_ENABLE_FIX_AND_CONTINUE = NO;
INFOPLIST_FILE = "Example-Info.plist";
PRODUCT_NAME = Example;
WRAPPER_EXTENSION = octest;
};
name = Release;
};
1DEB922308733DC00010E9CD /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CLANG_WARN_OBJCPP_ARC_ABI = YES;
GCC_C_LANGUAGE_STANDARD = c99;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = "-ObjC";
SDKROOT = iphoneos;
};
name = Debug;
};
1DEB922408733DC00010E9CD /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CLANG_WARN_OBJCPP_ARC_ABI = YES;
GCC_C_LANGUAGE_STANDARD = c99;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = "-ObjC";
SDKROOT = iphoneos;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
089B9DCC1298DA0C00D4F34F /* Build configuration list for PBXNativeTarget "Example" */ = {
isa = XCConfigurationList;
buildConfigurations = (
089B9DCA1298DA0C00D4F34F /* Debug */,
089B9DCB1298DA0C00D4F34F /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
1DEB922208733DC00010E9CD /* Build configuration list for PBXProject "iOSExample" */ = {
isa = XCConfigurationList;
buildConfigurations = (
1DEB922308733DC00010E9CD /* Debug */,
1DEB922408733DC00010E9CD /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 0867D690FE84028FC02AAC07 /* Project object */;
}