for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use PHPUnit\Framework\TestCase;
require ($dir = dirname(__DIR__)).DIRECTORY_SEPARATOR.'src'.DIRECTORY_SEPARATOR.'namedArgsHelper.php';
require ($dir = dirname(__DIR__)).DIRECTORY_SEPARATOR.'src'.DIRECTORY_SEPARATOR.'namedArgs.php';
require $dir.DIRECTORY_SEPARATOR.'Args.php';
use EZAMA\NamedArgs;
class NamedArgsTest extends TestCase
{
public function testStaticCall()
$this->assertEquals(
NamedArgs::preg_match_all(
preg_match_all()
EZAMA\namedArgs
__callStatic
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
NamedArgs::/** @scrutinizer ignore-call */
preg_match_all(
args(
[
'subpatterns'=>&$matches0,
$matches0
'pattern'=>'#a|o|i|u|e#',
'subject'=>'gris|gros|gras|grue'
]
)
),
preg_match_all('#a|o|i|u|e#', 'gris|gros|gras|grue', $matches1)
);
$this->assertEquals($matches0, $matches1);
$this->assertTrue(
(bool) NamedArgs::preg_match(
preg_match()
(bool) NamedArgs::/** @scrutinizer ignore-call */ preg_match(
'subpatterns'=>&$match,
$match
}