mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 09:32:24 -04:00
Add Safe PHP functions
This commit is contained in:
parent
04a956886a
commit
58cc098058
260 changed files with 49458 additions and 45 deletions
27
vendor/thecodingmachine/safe/generator/tests/ScannerTest.php
vendored
Normal file
27
vendor/thecodingmachine/safe/generator/tests/ScannerTest.php
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
|
||||
namespace Safe;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class ScannerTest extends TestCase
|
||||
{
|
||||
|
||||
public function testGetMethodsPaths()
|
||||
{
|
||||
$scanner = new Scanner(__DIR__ . '/../doc/doc-en/en/reference/');
|
||||
$paths = $scanner->getFunctionsPaths();
|
||||
|
||||
$this->assertArrayHasKey(__DIR__.'/../doc/doc-en/en/reference/filesystem/functions/chmod.xml', $paths);
|
||||
$this->assertArrayNotHasKey(__DIR__.'/../doc/doc-en/en/reference/spl/appenditerator/getarrayiterator.xml', $paths);
|
||||
}
|
||||
|
||||
public function testGetFunctionsPaths()
|
||||
{
|
||||
$scanner = new Scanner(__DIR__ . '/../doc/doc-en/en/reference/');
|
||||
$paths = $scanner->getMethodsPaths();
|
||||
|
||||
$this->assertArrayNotHasKey(__DIR__.'/../doc/doc-en/en/reference/filesystem/functions/chmod.xml', $paths);
|
||||
$this->assertArrayHasKey(__DIR__.'/../doc/doc-en/en/reference/spl/appenditerator/getarrayiterator.xml', $paths);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue