Skip to content

Commit edc3aa3

Browse files
Trainmastertroosan
authored andcommitted
Improve assertions
1 parent f41c542 commit edc3aa3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/PhpWord/Writer/Word2007/Part/SettingsTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public function testSpelling()
174174
$this->assertTrue($doc->elementExists($path, $file));
175175
$element = $doc->getElement($path, $file);
176176

177-
$this->assertNotEquals('false', $element->getAttribute('w:val'));
177+
$this->assertSame('true', $element->getAttribute('w:val'));
178178
}
179179

180180
/**
@@ -193,7 +193,7 @@ public function testEvenAndOddHeaders()
193193
$this->assertTrue($doc->elementExists($path, $file));
194194

195195
$element = $doc->getElement($path, $file);
196-
$this->assertNotEquals('false', $element->getAttribute('w:val'));
196+
$this->assertSame('true', $element->getAttribute('w:val'));
197197
}
198198

199199
/**
@@ -247,7 +247,7 @@ public function testMirrorMargins()
247247
$this->assertTrue($doc->elementExists($path, $file));
248248

249249
$element = $doc->getElement($path, $file);
250-
$this->assertNotEquals('false', $element->getAttribute('w:val'));
250+
$this->assertSame('true', $element->getAttribute('w:val'));
251251
}
252252

253253
/**
@@ -290,7 +290,7 @@ public function testTrackRevisions()
290290
$this->assertTrue($doc->elementExists($path, $file));
291291

292292
$element = $doc->getElement($path, $file);
293-
$this->assertNotEquals('false', $element->getAttribute('w:val'));
293+
$this->assertSame('true', $element->getAttribute('w:val'));
294294
}
295295

296296
/**
@@ -309,7 +309,7 @@ public function testDoNotTrackMoves()
309309
$this->assertTrue($doc->elementExists($path, $file));
310310

311311
$element = $doc->getElement($path, $file);
312-
$this->assertNotEquals('false', $element->getAttribute('w:val'));
312+
$this->assertSame('true', $element->getAttribute('w:val'));
313313
}
314314

315315
/**
@@ -328,7 +328,7 @@ public function testDoNotTrackFormatting()
328328
$this->assertTrue($doc->elementExists($path, $file));
329329

330330
$element = $doc->getElement($path, $file);
331-
$this->assertNotEquals('false', $element->getAttribute('w:val'));
331+
$this->assertSame('true', $element->getAttribute('w:val'));
332332
}
333333

334334
public function testAutoHyphenation()
@@ -344,7 +344,7 @@ public function testAutoHyphenation()
344344
$this->assertTrue($doc->elementExists($path, $file));
345345

346346
$element = $doc->getElement($path, $file);
347-
$this->assertNotEquals('false', $element->getAttribute('w:val'));
347+
$this->assertSame('true', $element->getAttribute('w:val'));
348348
}
349349

350350
public function testConsecutiveHyphenLimit()
@@ -392,6 +392,6 @@ public function testDoNotHyphenateCaps()
392392
$this->assertTrue($doc->elementExists($path, $file));
393393

394394
$element = $doc->getElement($path, $file);
395-
$this->assertNotEquals('false', $element->getAttribute('w:val'));
395+
$this->assertSame('true', $element->getAttribute('w:val'));
396396
}
397397
}

0 commit comments

Comments
 (0)