Completed
Push — master ( 03e47f...db33ac )
by WEBEWEB
06:42 queued 01:35
created

DirectoryNotFoundExceptionTest::testConstruct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 7
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of the core-library package.
5
 *
6
 * (c) 2017 NdC/WBW
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Library\Core\Tests\Exception\Directory;
13
14
use PHPUnit_Framework_TestCase;
15
use WBW\Library\Core\Exception\Directory\DirectoryNotFoundException;
16
17
/**
18
 * Directory not found exception test.
19
 *
20
 * @author NdC/WBW <https://github.com/webeweb/>
21
 * @package WBW\Library\Core\Tests\Exception\Directory
22
 * @final
23
 */
24
final class DirectoryNotFoundExceptionTest extends PHPUnit_Framework_TestCase {
25
26
	/**
27
	 * Tests the __construct() method.
28
	 */
29
	public function testConstruct() {
30
31
		$ex = new DirectoryNotFoundException("exception");
32
33
		$res = "The directory \"exception\" is not found";
34
		$this->assertEquals($res, $ex->getMessage());
35
	}
36
37
}
38