Esempio n. 1
0
 /**
  * Return the master context for this module
  *
  * @return null|string
  */
 public function masterContext()
 {
     if (!$this->doesProvide('context')) {
         return null;
     }
     return U::camelTodashed($this->provide['context'][0]);
 }
Esempio n. 2
0
 public function testCamelTodashed()
 {
     $this->assertEquals('this-is-a-test', U::camelTodashed('ThisIsATest'));
     $this->assertEquals('short', U::camelTodashed('Short'));
     $this->assertEquals('very-very-very-very-long', U::camelTodashed('VeryVeryVeryVeryLong'));
 }