Skip to content

Commit b4b87cd

Browse files
committed
CS fixer stronger checks
1 parent 6a5d2a6 commit b4b87cd

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

tests/PhpWord/Element/ImageTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ public function testConstruct()
3737
$this->assertInstanceOf('PhpOffice\\PhpWord\\Element\\Image', $oImage);
3838
$this->assertEquals($src, $oImage->getSource());
3939
$this->assertEquals(md5($src), $oImage->getMediaId());
40-
// todo: change to assertNotTrue when got upgraded to PHPUnit 4.x
41-
$this->assertEquals(false, $oImage->isWatermark());
40+
$this->assertFalse($oImage->isWatermark());
4241
$this->assertEquals(Image::SOURCE_LOCAL, $oImage->getSourceType());
4342
$this->assertInstanceOf('PhpOffice\\PhpWord\\Style\\Image', $oImage->getStyle());
4443
}

tests/PhpWord/Shared/ConverterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function testHtmlToRGB()
121121
*/
122122
public function testCssSizeParser()
123123
{
124-
$this->assertEquals(null, Converter::cssToPoint('10em'));
124+
$this->assertNull(Converter::cssToPoint('10em'));
125125
$this->assertEquals(0, Converter::cssToPoint('0'));
126126
$this->assertEquals(10, Converter::cssToPoint('10pt'));
127127
$this->assertEquals(7.5, Converter::cssToPoint('10px'));

tests/PhpWord/Style/AbstractStyleTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ public function testSetValDefault()
5656
{
5757
$stub = $this->getMockForAbstractClass('\PhpOffice\PhpWord\Style\AbstractStyle');
5858

59-
// todo: change to assertNotTrue when got upgraded to PHPUnit 4.x
60-
$this->assertEquals(false, self::callProtectedMethod($stub, 'setBoolVal', array('a', false)));
59+
$this->assertNotTrue(self::callProtectedMethod($stub, 'setBoolVal', array('a', false)));
6160
$this->assertEquals(200, self::callProtectedMethod($stub, 'setIntVal', array('foo', 200)));
6261
$this->assertEquals(2.1, self::callProtectedMethod($stub, 'setFloatVal', array('foo', 2.1)));
6362
$this->assertEquals('b', self::callProtectedMethod($stub, 'setEnumVal', array(null, array('a', 'b'), 'b')));

0 commit comments

Comments
 (0)