Skip to content

Commit ba19b89

Browse files
author
alexandresalome
committed
fix tests on Blob
1 parent 3597e00 commit ba19b89

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Gitonomy/Git/Blob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,6 @@ public function isBinary()
103103
*/
104104
public function isText()
105105
{
106-
return preg_match('#^text/|^application/xml#', $this->getMimetype());
106+
return (bool) preg_match('#^text/|^application/xml#', $this->getMimetype());
107107
}
108108
}

tests/Gitonomy/Git/Tests/BlobTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ public function testGetMimetype()
4141
public function testIsText()
4242
{
4343
$blob = $this->getLibRepository()->getBlob(self::README_BLOB);
44-
$this->asserTrue($blob->isText());
44+
$this->assertTrue($blob->isText());
4545
}
4646

4747
public function testIsBinary()
4848
{
4949
$blob = $this->getLibRepository()->getBlob(self::README_BLOB);
50-
$this->asserFalse($blob->isBinary());
50+
$this->assertFalse($blob->isBinary());
5151
}
5252
}

0 commit comments

Comments
 (0)