Skip to content

Commit dd2bba7

Browse files
committed
Initial test added
1 parent e60d4a6 commit dd2bba7

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

phpunit.xml.dist renamed to phpunit.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
processIsolation="false"
1111
stopOnFailure="false">
1212
<testsuites>
13-
<testsuite name="Helpers Test Suite">
13+
<testsuite name="PHP-IMAP Test Suite">
1414
<directory>tests</directory>
1515
</testsuite>
1616
</testsuites>
@@ -26,4 +26,7 @@
2626
<log type="coverage-text" target="build/coverage.txt"/>
2727
<log type="coverage-clover" target="build/logs/clover.xml"/>
2828
</logging>
29+
<php>
30+
<env name="APP_ENV" value="testing"/>
31+
</php>
2932
</phpunit>

tests/InitialTest.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
/*
3+
* File: InitialTest.php
4+
* Category: test
5+
* Author: M.Goldenbaum
6+
* Created: 02.01.21 04:42
7+
* Updated: -
8+
*
9+
* Description:
10+
* -
11+
*/
12+
13+
use PHPUnit\Framework\TestCase;
14+
use \Webklex\PHPIMAP\ClientManager;
15+
16+
class InitialTest extends TestCase {
17+
protected $cm;
18+
19+
public function setUp() {
20+
$this->cm = new ClientManager();
21+
}
22+
23+
public function testConfigDefaultAccount() {
24+
$this->assertEquals("default", ClientManager::get("default"));
25+
}
26+
}

0 commit comments

Comments
 (0)