projects
/
m6w6
/
ascertain
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
tests
[m6w6/ascertain]
/
lib
/
ascertain
/
Validator.php
1
<
?php
2
3
namespace
ascertain
;
4
5
/**
6
* Use this trait in an \ascertain\Testable class
7
*/
8
trait Validator
{
9
/**
10
* @param string $e Exception class name
11
* @return \ascertain\Assert
12
*/
13
function
assert
(
$e
=
"
\\
InvalidArgumentException"
) {
14
return new
Assert
(
$this
,
$e
);
15
}
16
}