Skip to content

Commit d66f87f

Browse files
committed
Adding failing test for filesize
1 parent 27ee016 commit d66f87f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

generated/pcre.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ function preg_match_all(string $pattern, string $subject, array &$matches = null
377377
*
378378
*
379379
* If this flag is passed, for every occurring match the appendant string
380-
* offset will also be returned. Note that this changes the value of
380+
* offset (in bytes) will also be returned. Note that this changes the value of
381381
* matches into an array where every element is an
382382
* array consisting of the matched string at offset 0
383383
* and its string offset into subject at offset
@@ -461,7 +461,7 @@ function preg_match_all(string $pattern, string $subject, array &$matches = null
461461
*
462462
*
463463
* If this flag is passed, for every occurring match the appendant string
464-
* offset will also be returned. Note that this changes the value of
464+
* offset (in bytes) will also be returned. Note that this changes the value of
465465
* matches into an array where every element is an
466466
* array consisting of the matched string at offset 0
467467
* and its string offset into subject at offset
@@ -538,7 +538,7 @@ function preg_match_all(string $pattern, string $subject, array &$matches = null
538538
*
539539
* The above example will output:
540540
* @param int $offset If this flag is passed, for every occurring match the appendant string
541-
* offset will also be returned. Note that this changes the value of
541+
* offset (in bytes) will also be returned. Note that this changes the value of
542542
* matches into an array where every element is an
543543
* array consisting of the matched string at offset 0
544544
* and its string offset into subject at offset

generator/tests/DocPageTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ public function testDetectFalsyFunction() {
1111
$implode = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/strings/functions/implode.xml');
1212
$getCwd = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/dir/functions/getcwd.xml');
1313
$setTime = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/datetime/datetime/settime.xml');
14+
$filesize = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/datetime/filesystem/filesize.xml');
1415

1516
$this->assertTrue($pregMatch->detectFalsyFunction());
1617
$this->assertFalse($implode->detectFalsyFunction());
1718
$this->assertTrue($getCwd->detectFalsyFunction());
1819
$this->assertTrue($setTime->detectFalsyFunction());
20+
$this->assertTrue($filesize->detectFalsyFunction());
1921
}
2022
}

0 commit comments

Comments
 (0)