コード例 #1
0
 public function testSpaceToUnderscoreStringToUpper()
 {
     $result = Factory::spaceToUnderscore(parent::STRING_SPACE, 'strtoupper');
     $this->assertSame('PHP_EOL', $result);
 }
コード例 #2
0
 public function testClassNameToSpaceStringToLower()
 {
     $result = Factory::classNameToSpace(parent::STRING_CLASS_NAME, 'strtolower');
     $this->assertSame('php eol', $result);
 }
コード例 #3
0
 public function testUnderscoreToSpaceStringToUpper()
 {
     $result = Factory::underscoreToSpace(parent::STRING_UNDERSCORE, 'strtoupper');
     $this->assertSame('PHP EOL', $result);
 }
コード例 #4
0
 public function testHyphenToSpaceStringToUpper()
 {
     $result = Factory::hyphenToSpace(ucfirst(parent::STRING_HYPHEN), 'strtoupper');
     $this->assertSame('PHP EOL', $result);
 }
コード例 #5
0
 public function testConstantToSpaceStringToLower()
 {
     $result = Factory::constantToSpace(parent::STRING_CONSTANT, 'strtolower');
     $this->assertSame('php eol', $result);
 }
コード例 #6
0
 public function testCamelToSpaceStringToLower()
 {
     $result = Factory::camelToSpace(parent::STRING_CAMEL, 'strtolower');
     $this->assertSame('php eol', $result);
 }