for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class EscapeTest extends BridgeTestCase
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
/** @dataProvider escapingProvider */
public function testRealEscapeString($expected, $unescaped)
$this->assertEquals($expected, $this->bridge->realEscapeString($unescaped));
}
public function testEscapeString($expected, $unescaped)
$this->assertEquals($expected, $this->bridge->escapeString($unescaped));
public function escapingProvider()
return [
["1\' or \'1\' = \'1", "1' or '1' = '1"],
["O\'Reilly Media", "O'Reilly Media"],
['New line\n', "New line\n"],
["\\\\\\'test\\\\test", "\'test\\test"],
];
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.