| 1 |
<?php |
| 2 |
|
| 3 |
use PHPUnit\Framework\TestCase; |
| 4 |
|
| 5 |
class FolderCreatorTest extends TestCase { |
| 6 |
|
| 7 |
public function setUp() { |
| 8 |
$this->creator = new ResponsiveMenu\Filesystem\FolderCreator; |
| 9 |
$this->dir = dirname(__FILE__) . '/tmp'; |
| 10 |
} |
| 11 |
|
| 12 |
public function testCreate() { |
| 13 |
$this->creator->create($this->dir); |
| 14 |
$this->assertTrue($this->creator->exists($this->dir)); |
| 15 |
} |
| 16 |
|
| 17 |
public function tearDown() { |
| 18 |
rmdir($this->dir); |
| 19 |
} |
| 20 |
|
| 21 |
} |
| 22 |
|