for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Cubiche/Metadata component.
*
* Copyright (c) Cubiche
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Cubiche\Core\Metadata\Tests\Units;
use Cubiche\Tests\TestCase as BaseTestCase;
* TestCase class.
* Generated by TestGenerator on 2017-05-16 at 13:17:21.
abstract class TestCase extends BaseTestCase
{
* Remove directory when the directory is not empty.
* @param string $dir
protected function rmdir($dir)
if (is_dir($dir)) {
$objects = scandir($dir);
foreach ($objects as $object) {
if ($object != '.' && $object != '..') {
if (filetype($dir.'/'.$object) == 'dir') {
$this->rmdir($dir.'/'.$object);
} else {
unlink($dir.'/'.$object);
}
reset($objects);
rmdir($dir);