for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class xKerman_Restricted_Test_ExpressionParserTest extends PHPUnit_Framework_TestCase
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.
{
public function provideInvalidData()
return array('empty string' => array('input' => ''), 'invalid tag' => array('input' => 'x:2:"aa";'));
}
/**
* @covers \xKerman\Restricted\ExpressionParser
* @dataProvider provideInvalidData
* @expectedException xKerman_Restricted_UnserializeFailedException
*/
public function testParseFailure($input)
$source = new xKerman_Restricted_Source($input);
$parser = new xKerman_Restricted_ExpressionParser();
$parser->parse($source);
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.