-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathConfigTest.php
More file actions
51 lines (30 loc) · 867 Bytes
/
Copy pathConfigTest.php
File metadata and controls
51 lines (30 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
declare(strict_types=1);
use PHPUnit\Framework\TestCase;
use Madeny\lhttps\Config;
use Madeny\lhttps\Init;
class ConfigTest extends TestCase {
/** @test8 */
public function it_can_instance_Config_class () {
$this->assertInstanceOf(Config::class, (new Config("madeny.dev")));
}
/** @test */
public function it_can_generate_v3 () {
$path = Config::path();
$init = new Init("madeny.dev");
$v3 = new Config($path, "madeny.test");
$this->assertEquals(1, file_exists($path."/cnf/v3.ext"));
}
/** @test */
function it_can_generate_openssl_config()
{
$path = Config::path();
$init = new Config($path, "madeny.dev");
$this->assertEquals(1, file_exists($path."/cnf/openssl.cnf"));
}
/** @test */
function it_can_return_a_path()
{
$this->assertEquals(1, file_exists(Config::path()));
}
}