File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,6 @@ public function isBinary()
103
103
*/
104
104
public function isText ()
105
105
{
106
- return preg_match ('#^text/|^application/xml# ' , $ this ->getMimetype ());
106
+ return ( bool ) preg_match ('#^text/|^application/xml# ' , $ this ->getMimetype ());
107
107
}
108
108
}
Original file line number Diff line number Diff line change @@ -41,12 +41,12 @@ public function testGetMimetype()
41
41
public function testIsText ()
42
42
{
43
43
$ blob = $ this ->getLibRepository ()->getBlob (self ::README_BLOB );
44
- $ this ->asserTrue ($ blob ->isText ());
44
+ $ this ->assertTrue ($ blob ->isText ());
45
45
}
46
46
47
47
public function testIsBinary ()
48
48
{
49
49
$ blob = $ this ->getLibRepository ()->getBlob (self ::README_BLOB );
50
- $ this ->asserFalse ($ blob ->isBinary ());
50
+ $ this ->assertFalse ($ blob ->isBinary ());
51
51
}
52
52
}
You can’t perform that action at this time.
0 commit comments