| @@ 1071-1088 (lines=18) @@ | ||
| 1068 | /** |
|
| 1069 | * @covers PHPUnit_Framework_Assert::assertXmlFileEqualsXmlFile |
|
| 1070 | */ |
|
| 1071 | public function testAssertXmlFileEqualsXmlFile() |
|
| 1072 | { |
|
| 1073 | $this->assertXmlFileEqualsXmlFile( |
|
| 1074 | $this->filesDirectory . 'foo.xml', |
|
| 1075 | $this->filesDirectory . 'foo.xml' |
|
| 1076 | ); |
|
| 1077 | ||
| 1078 | try { |
|
| 1079 | $this->assertXmlFileEqualsXmlFile( |
|
| 1080 | $this->filesDirectory . 'foo.xml', |
|
| 1081 | $this->filesDirectory . 'bar.xml' |
|
| 1082 | ); |
|
| 1083 | } catch (PHPUnit_Framework_AssertionFailedError $e) { |
|
| 1084 | return; |
|
| 1085 | } |
|
| 1086 | ||
| 1087 | $this->fail(); |
|
| 1088 | } |
|
| 1089 | ||
| 1090 | /** |
|
| 1091 | * @covers PHPUnit_Framework_Assert::assertXmlFileNotEqualsXmlFile |
|
| @@ 1093-1110 (lines=18) @@ | ||
| 1090 | /** |
|
| 1091 | * @covers PHPUnit_Framework_Assert::assertXmlFileNotEqualsXmlFile |
|
| 1092 | */ |
|
| 1093 | public function testAssertXmlFileNotEqualsXmlFile() |
|
| 1094 | { |
|
| 1095 | $this->assertXmlFileNotEqualsXmlFile( |
|
| 1096 | $this->filesDirectory . 'foo.xml', |
|
| 1097 | $this->filesDirectory . 'bar.xml' |
|
| 1098 | ); |
|
| 1099 | ||
| 1100 | try { |
|
| 1101 | $this->assertXmlFileNotEqualsXmlFile( |
|
| 1102 | $this->filesDirectory . 'foo.xml', |
|
| 1103 | $this->filesDirectory . 'foo.xml' |
|
| 1104 | ); |
|
| 1105 | } catch (PHPUnit_Framework_AssertionFailedError $e) { |
|
| 1106 | return; |
|
| 1107 | } |
|
| 1108 | ||
| 1109 | $this->fail(); |
|
| 1110 | } |
|
| 1111 | ||
| 1112 | /** |
|
| 1113 | * @covers PHPUnit_Framework_Assert::assertXmlStringEqualsXmlFile |
|
| @@ 1115-1132 (lines=18) @@ | ||
| 1112 | /** |
|
| 1113 | * @covers PHPUnit_Framework_Assert::assertXmlStringEqualsXmlFile |
|
| 1114 | */ |
|
| 1115 | public function testAssertXmlStringEqualsXmlFile() |
|
| 1116 | { |
|
| 1117 | $this->assertXmlStringEqualsXmlFile( |
|
| 1118 | $this->filesDirectory . 'foo.xml', |
|
| 1119 | file_get_contents($this->filesDirectory . 'foo.xml') |
|
| 1120 | ); |
|
| 1121 | ||
| 1122 | try { |
|
| 1123 | $this->assertXmlStringEqualsXmlFile( |
|
| 1124 | $this->filesDirectory . 'foo.xml', |
|
| 1125 | file_get_contents($this->filesDirectory . 'bar.xml') |
|
| 1126 | ); |
|
| 1127 | } catch (PHPUnit_Framework_AssertionFailedError $e) { |
|
| 1128 | return; |
|
| 1129 | } |
|
| 1130 | ||
| 1131 | $this->fail(); |
|
| 1132 | } |
|
| 1133 | ||
| 1134 | /** |
|
| 1135 | * @covers PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlFile |
|
| @@ 1137-1154 (lines=18) @@ | ||
| 1134 | /** |
|
| 1135 | * @covers PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlFile |
|
| 1136 | */ |
|
| 1137 | public function testXmlStringNotEqualsXmlFile() |
|
| 1138 | { |
|
| 1139 | $this->assertXmlStringNotEqualsXmlFile( |
|
| 1140 | $this->filesDirectory . 'foo.xml', |
|
| 1141 | file_get_contents($this->filesDirectory . 'bar.xml') |
|
| 1142 | ); |
|
| 1143 | ||
| 1144 | try { |
|
| 1145 | $this->assertXmlStringNotEqualsXmlFile( |
|
| 1146 | $this->filesDirectory . 'foo.xml', |
|
| 1147 | file_get_contents($this->filesDirectory . 'foo.xml') |
|
| 1148 | ); |
|
| 1149 | } catch (PHPUnit_Framework_AssertionFailedError $e) { |
|
| 1150 | return; |
|
| 1151 | } |
|
| 1152 | ||
| 1153 | $this->fail(); |
|
| 1154 | } |
|
| 1155 | ||
| 1156 | /** |
|
| 1157 | * @covers PHPUnit_Framework_Assert::assertXmlStringEqualsXmlString |
|
| @@ 3134-3151 (lines=18) @@ | ||
| 3131 | /** |
|
| 3132 | * @covers PHPUnit_Framework_Assert::assertFileEquals |
|
| 3133 | */ |
|
| 3134 | public function testAssertFileEquals() |
|
| 3135 | { |
|
| 3136 | $this->assertFileEquals( |
|
| 3137 | $this->filesDirectory . 'foo.xml', |
|
| 3138 | $this->filesDirectory . 'foo.xml' |
|
| 3139 | ); |
|
| 3140 | ||
| 3141 | try { |
|
| 3142 | $this->assertFileEquals( |
|
| 3143 | $this->filesDirectory . 'foo.xml', |
|
| 3144 | $this->filesDirectory . 'bar.xml' |
|
| 3145 | ); |
|
| 3146 | } catch (PHPUnit_Framework_AssertionFailedError $e) { |
|
| 3147 | return; |
|
| 3148 | } |
|
| 3149 | ||
| 3150 | $this->fail(); |
|
| 3151 | } |
|
| 3152 | ||
| 3153 | /** |
|
| 3154 | * @covers PHPUnit_Framework_Assert::assertFileNotEquals |
|
| @@ 3156-3173 (lines=18) @@ | ||
| 3153 | /** |
|
| 3154 | * @covers PHPUnit_Framework_Assert::assertFileNotEquals |
|
| 3155 | */ |
|
| 3156 | public function testAssertFileNotEquals() |
|
| 3157 | { |
|
| 3158 | $this->assertFileNotEquals( |
|
| 3159 | $this->filesDirectory . 'foo.xml', |
|
| 3160 | $this->filesDirectory . 'bar.xml' |
|
| 3161 | ); |
|
| 3162 | ||
| 3163 | try { |
|
| 3164 | $this->assertFileNotEquals( |
|
| 3165 | $this->filesDirectory . 'foo.xml', |
|
| 3166 | $this->filesDirectory . 'foo.xml' |
|
| 3167 | ); |
|
| 3168 | } catch (PHPUnit_Framework_AssertionFailedError $e) { |
|
| 3169 | return; |
|
| 3170 | } |
|
| 3171 | ||
| 3172 | $this->fail(); |
|
| 3173 | } |
|
| 3174 | ||
| 3175 | /** |
|
| 3176 | * @covers PHPUnit_Framework_Assert::assertStringEqualsFile |
|
| @@ 3178-3195 (lines=18) @@ | ||
| 3175 | /** |
|
| 3176 | * @covers PHPUnit_Framework_Assert::assertStringEqualsFile |
|
| 3177 | */ |
|
| 3178 | public function testAssertStringEqualsFile() |
|
| 3179 | { |
|
| 3180 | $this->assertStringEqualsFile( |
|
| 3181 | $this->filesDirectory . 'foo.xml', |
|
| 3182 | file_get_contents($this->filesDirectory . 'foo.xml') |
|
| 3183 | ); |
|
| 3184 | ||
| 3185 | try { |
|
| 3186 | $this->assertStringEqualsFile( |
|
| 3187 | $this->filesDirectory . 'foo.xml', |
|
| 3188 | file_get_contents($this->filesDirectory . 'bar.xml') |
|
| 3189 | ); |
|
| 3190 | } catch (PHPUnit_Framework_AssertionFailedError $e) { |
|
| 3191 | return; |
|
| 3192 | } |
|
| 3193 | ||
| 3194 | $this->fail(); |
|
| 3195 | } |
|
| 3196 | ||
| 3197 | /** |
|
| 3198 | * @covers PHPUnit_Framework_Assert::assertStringNotEqualsFile |
|
| @@ 3200-3217 (lines=18) @@ | ||
| 3197 | /** |
|
| 3198 | * @covers PHPUnit_Framework_Assert::assertStringNotEqualsFile |
|
| 3199 | */ |
|
| 3200 | public function testAssertStringNotEqualsFile() |
|
| 3201 | { |
|
| 3202 | $this->assertStringNotEqualsFile( |
|
| 3203 | $this->filesDirectory . 'foo.xml', |
|
| 3204 | file_get_contents($this->filesDirectory . 'bar.xml') |
|
| 3205 | ); |
|
| 3206 | ||
| 3207 | try { |
|
| 3208 | $this->assertStringNotEqualsFile( |
|
| 3209 | $this->filesDirectory . 'foo.xml', |
|
| 3210 | file_get_contents($this->filesDirectory . 'foo.xml') |
|
| 3211 | ); |
|
| 3212 | } catch (PHPUnit_Framework_AssertionFailedError $e) { |
|
| 3213 | return; |
|
| 3214 | } |
|
| 3215 | ||
| 3216 | $this->fail(); |
|
| 3217 | } |
|
| 3218 | ||
| 3219 | /** |
|
| 3220 | * @covers PHPUnit_Framework_Assert::assertStringStartsWith |
|