i just setted up a Alias for a native function that solves the problem
<?php use PHPUnit\Framework\TestCase; use function ucwords as caps; class UpperallTest extends TestCase { public function testSampleTests() { $this->assertEquals("Hello My Friends.", caps("hello my friends.")); } }
- <?php
- use PHPUnit\Framework\TestCase;
- use function ucwords as caps;
- class UpperallTest extends TestCase {
- public function testSampleTests() {
- $this->assertEquals("Hello My Friends.", caps("hello my friends."));
- }
- }