for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?PHP
class AOP_Case_EventsTest 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 testAOP_Case_Events(){
//execute the contructor and check for the Object type and type attribute
$aopCaseEvents = new AOP_Case_Events();
$this->assertInstanceOf('AOP_Case_Events',$aopCaseEvents);
$this->assertInstanceOf('Basic',$aopCaseEvents);
$this->assertInstanceOf('SugarBean',$aopCaseEvents);
$this->assertAttributeEquals('AOP_Case_Events', 'module_dir', $aopCaseEvents);
$this->assertAttributeEquals('AOP_Case_Events', 'object_name', $aopCaseEvents);
$this->assertAttributeEquals('aop_case_events', 'table_name', $aopCaseEvents);
$this->assertAttributeEquals(true, 'new_schema', $aopCaseEvents);
$this->assertAttributeEquals(true, 'disable_row_level_security', $aopCaseEvents);
$this->assertAttributeEquals(false, 'importable', $aopCaseEvents);
$this->assertAttributeEquals(false, 'tracker_visibility', $aopCaseEvents);
}
?>
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.