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