for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Hogosha\Monitor\Validator;
/**
* @author Guillaume Cavana <[email protected]>
*/
class HtmlValidatorTest extends \PHPUnit_Framework_TestCase
{
* testException
* @expectedException Hogosha\Monitor\Exception\ValidatorException
* @expectedExceptionMessage this string "/damme/" cannot be found
public function testException()
$htmlValidator = new HtmlValidator();
$htmlValidator->check('chuck norris', '/damme/');
}
* testCheckTrue
public function testCheckTrue()
$this->assertNull($htmlValidator->check('chuck norris', '/chuck/'));