Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding discrete tests to Folder::addPathElement

  • Loading branch information...
commit 23ab84596aa2083acea08d7b33e275f4322b7f2b 1 parent 00d7c65
@markstory markstory authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 cake/tests/cases/libs/folder.test.php
View
12 cake/tests/cases/libs/folder.test.php
@@ -216,6 +216,18 @@ function testZeroAsDirectory() {
$this->assertTrue($result);
}
/**
+ * test Adding path elements to a path
+ *
+ * @return void
+ **/
+ function testAddPathElement() {
+ $result = Folder::addPathElement(DS . 'some' . DS . 'dir', 'another_path');
+ $this->assertEqual($result, DS . 'some' . DS . 'dir' . DS . 'another_path');
+
+ $result = Folder::addPathElement(DS . 'some' . DS . 'dir' . DS, 'another_path');
+ $this->assertEqual($result, DS . 'some' . DS . 'dir' . DS . 'another_path');
+ }
+/**
* testFolderRead method
*
* @access public
Please sign in to comment.
Something went wrong with that request. Please try again.