/**
  * @dataProvider stripEndProvider
  */
 public function testStripEnd($input, $output, $replace, $case)
 {
     $result = StringHelper::stripEnd($input, $replace, $case) == $output;
     $this->assertTrue($result);
 }
 /**
  * Adds the parameter to the appropriate object
  *
  * @param int $index
  * @param string $url_part
  * @since 0.0.9
  */
 private function addBaseParameter($index, $url_part)
 {
     $paramValue = StringHelper::lispCaseToPascalCase($url_part);
     if ($index == 0) {
         $this->controller = $paramValue;
     } else {
         $this->action = $paramValue;
     }
 }
 /**
  * Returns the ID (with leading zeros) of the organisation the user belongs to
  *
  * @return string
  * @since 0.0.7
  */
 public function getOrganisationDisplayId()
 {
     return StringHelper::leadingZeros($this->entity->getOrganisation()->getId());
 }