4 * @group GlobalFunctions
5 * @covers ::wfStringToBool
7 class WfStringToBoolTest
extends MediaWikiTestCase
{
9 public function getTestCases() {
32 [ 'forget about it', false ],
39 * @dataProvider getTestCases
43 public function testStr2Bool( $str, $bool ) {
45 $this->assertTrue( wfStringToBool( $str ) );
47 $this->assertFalse( wfStringToBool( $str ) );