示例#1
0
 public function testSetPathWillAddContainingSlashes()
 {
     $newPath = "new/path";
     $containedPath = "/{$newPath}/";
     $fixture = new Apache_Solr_Service();
     $fixture->setPath($newPath);
     $path = $fixture->getPath();
     $this->assertEquals($containedPath, $path, 'setPath did not ensure propertly wrapped with slashes');
 }