for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare( strict_types = 1 );
namespace Coco\SourceWatcher\Tests\Utils;
use Coco\SourceWatcher\Utils\TextUtils;
use PHPUnit\Framework\TestCase;
/**
* Class TextUtilsTest
* @package Coco\SourceWatcher\Tests\Utils
*/
class TextUtilsTest extends TestCase
{
*
public function testConvertToCamelCase () : void
$textUtils = new TextUtils();
$given = "this_is_a_text";
$expected = "thisIsAText";
$this->assertEquals( $expected, $textUtils->textToCamelCase( $given ) );
}
public function testConvertToPascalCase () : void
$expected = "ThisIsAText";
$this->assertEquals( $expected, $textUtils->textToPascalCase( $given ) );