for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Maestriam\Samurai\Tests\Unit\Entities\Theme;
use Maestriam\Samurai\Entities\Theme;
class ThemeStructureTest extends ThemeTestCase
{
/**
* Verifica se retorna o
*
* @return void
*/
public function testSourcePath()
$theme = new Theme('sandbox/local');
$this->assertPathString($theme->paths()->source());
}
public function testAssetPath()
$this->assertPathString($theme->paths()->assets());
public function testPublicPath()
$this->assertPathString($theme->paths()->public());
private function assertPathString(string $path)
$dbSlashes = '//';
$dbInvSlashes = '\\\\';
$dbCrossSlashes = '\/';
$dbInvCrossSlashes = '/\\';
$this->assertIsString($path);
$this->assertStringNotContainsString($dbSlashes, $path);
$this->assertStringNotContainsString($dbInvSlashes, $path);
$this->assertStringNotContainsString($dbCrossSlashes, $path);
$this->assertStringNotContainsString($dbInvCrossSlashes, $path);