addTrailingSlash() public method

Add slash at the end of the path.
public addTrailingSlash ( string $dir ) : string
$dir string
return string
 /**
  * Test the trailing slash method.
  */
 public function testTrailingSlashes()
 {
     $dir = DIRECTORY_SEPARATOR . 'test';
     $this->assertEquals(DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR, $this->_update->addTrailingSlash($dir));
     $dir = DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR;
     $this->assertEquals(DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR, $this->_update->addTrailingSlash($dir));
 }