Skip to content

Commit

Permalink
Adding failing test for filesize
Browse files Browse the repository at this point in the history
  • Loading branch information
moufmouf committed Oct 30, 2018
1 parent 27ee016 commit d66f87f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions generated/pcre.php
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ function preg_match_all(string $pattern, string $subject, array &$matches = null
*
*
* If this flag is passed, for every occurring match the appendant string
* offset will also be returned. Note that this changes the value of
* offset (in bytes) will also be returned. Note that this changes the value of
* matches into an array where every element is an
* array consisting of the matched string at offset 0
* and its string offset into subject at offset
Expand Down Expand Up @@ -461,7 +461,7 @@ function preg_match_all(string $pattern, string $subject, array &$matches = null
*
*
* If this flag is passed, for every occurring match the appendant string
* offset will also be returned. Note that this changes the value of
* offset (in bytes) will also be returned. Note that this changes the value of
* matches into an array where every element is an
* array consisting of the matched string at offset 0
* and its string offset into subject at offset
Expand Down Expand Up @@ -538,7 +538,7 @@ function preg_match_all(string $pattern, string $subject, array &$matches = null
*
* The above example will output:
* @param int $offset If this flag is passed, for every occurring match the appendant string
* offset will also be returned. Note that this changes the value of
* offset (in bytes) will also be returned. Note that this changes the value of
* matches into an array where every element is an
* array consisting of the matched string at offset 0
* and its string offset into subject at offset
Expand Down
2 changes: 2 additions & 0 deletions generator/tests/DocPageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ public function testDetectFalsyFunction() {
$implode = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/strings/functions/implode.xml');
$getCwd = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/dir/functions/getcwd.xml');
$setTime = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/datetime/datetime/settime.xml');
$filesize = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/datetime/filesystem/filesize.xml');

$this->assertTrue($pregMatch->detectFalsyFunction());
$this->assertFalse($implode->detectFalsyFunction());
$this->assertTrue($getCwd->detectFalsyFunction());
$this->assertTrue($setTime->detectFalsyFunction());
$this->assertTrue($filesize->detectFalsyFunction());
}
}

0 comments on commit d66f87f

Please # to comment.