Skip to content

Commit cb2752e

Browse files
committed
added a test case
1 parent d3d6bdf commit cb2752e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

generator/tests/DocPageTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public function testDetectFalsyFunction()
1616
$sessionRegister = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/session/functions/session-register.xml');
1717
$mcryptDecrypt = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/mcrypt/functions/mcrypt-decrypt.xml');
1818
$fsockopen = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/network/functions/fsockopen.xml');
19+
$arrayReplace = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/array/functions/array-replace.xml');
1920

2021
$this->assertTrue($pregMatch->detectFalsyFunction());
2122
$this->assertFalse($implode->detectFalsyFunction());
@@ -25,14 +26,17 @@ public function testDetectFalsyFunction()
2526
$this->assertFalse($sessionRegister->detectFalsyFunction());
2627
$this->assertTrue($mcryptDecrypt->detectFalsyFunction());
2728
$this->assertTrue($fsockopen->detectFalsyFunction());
29+
$this->assertFalse($arrayReplace->detectFalsyFunction());
2830
}
2931

3032
public function testDetectNullsyFunction()
3133
{
3234
$pregMatch = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/array/functions/array-flip.xml');
3335
$implode = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/strings/functions/implode.xml');
36+
$arrayReplace = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/array/functions/array-replace.xml');
3437

3538
$this->assertTrue($pregMatch->detectNullsyFunction());
3639
$this->assertFalse($implode->detectNullsyFunction());
40+
$this->assertTrue($arrayReplace->detectNullsyFunction());
3741
}
3842
}

0 commit comments

Comments
 (0)