/**
  * @dataProvider provideNames
  */
 public function testSplit($classified, $separator, $split, $exploded)
 {
     $this->assertEquals(KInflector::split($separator, $classified), $split);
 }
示例#2
0
 /**
  * Constructor
  *
  * @param	object	Object
  * @param	string	Basename for the object [controller|view|...]
  */
 public function __construct($object, $basename)
 {
     $this->_object = $object;
     $this->_name_base = $basename;
     $this->_name_parts = KInflector::split($basename, get_class($this->_object));
 }