class SwiftMailerTestCase extends \PHPUnit_Framework_TestCase
why coder uses backslash in extends class in above php code
class SwiftMailerTestCase extends \PHPUnit_Framework_TestCase
why coder uses backslash in extends class in above php code
It is used to let PHP know where the class exists. For example, \app\classes\TestClass
will let it know that the class exists in app\classes
directory/namespace. If you will not add the path, It will look for the class in the same Namespace!