addTrailingSlash() public méthode

Add slash at the end of the path.
public addTrailingSlash ( string $dir ) : string
$dir string
Résultat 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));
 }