Completed
Push — master ( 291e85...e418c2 )
by Guillaume
02:40
created

HtmlValidatorTest::testException()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 9.4285
c 1
b 0
f 0
1
<?php
2
3
namespace Hogosha\Monitor\Validator;
4
5
/**
6
 * @author Guillaume Cavana <[email protected]>
7
 */
8
class HtmlValidatorTest extends \PHPUnit_Framework_TestCase
9
{
10
    /**
11
     * testException
12
     * @expectedException Hogosha\Monitor\Exception\ValidatorException
13
     * @expectedExceptionMessage this string "/damme/" cannot be found
14
     */
15
    public function testException()
16
    {
17
        $htmlValidator = new HtmlValidator();
18
        $htmlValidator->check('chuck norris', '/damme/');
19
    }
20
21
    /**
22
     * testCheckTrue
23
     */
24
    public function testCheckTrue()
25
    {
26
        $htmlValidator = new HtmlValidator();
27
        $this->assertNull($htmlValidator->check('chuck norris', '/chuck/'));
28
    }
29
}
30