@@ 5-20 (lines=16) @@ | ||
2 | ||
3 | namespace UnicadeAssert; |
|
4 | ||
5 | class BeberleiFacade extends \Assert\Assertion |
|
6 | { |
|
7 | protected function fire($methodName, $args) |
|
8 | { |
|
9 | if (method_exists(__CLASS__, $methodName)) { |
|
10 | return call_user_func_array(array(__CLASS__, $methodName), $args); |
|
11 | } |
|
12 | ||
13 | throw new \BadMethodCallException(); |
|
14 | } |
|
15 | ||
16 | public static function __callStatic($methodName, $args) |
|
17 | { |
|
18 | return $this->fire($methodName, $args); |
|
19 | } |
|
20 | } |
|
21 |
@@ 5-20 (lines=16) @@ | ||
2 | ||
3 | namespace UnicadeAssert; |
|
4 | ||
5 | class PHPUnitFacade extends \PHPUnit_Framework_Assert |
|
6 | { |
|
7 | protected function fire($methodName, $args) |
|
8 | { |
|
9 | if (method_exists(__CLASS__, $methodName)) { |
|
10 | return call_user_func_array(array(__CLASS__, $methodName), $args); |
|
11 | } |
|
12 | ||
13 | throw new \BadMethodCallException(); |
|
14 | } |
|
15 | ||
16 | public static function __callStatic($methodName, array $args) |
|
17 | { |
|
18 | return $this->fire($methodName, $args); |
|
19 | } |
|
20 | } |
|
21 |
@@ 5-24 (lines=20) @@ | ||
2 | ||
3 | namespace UnicadeAssert; |
|
4 | ||
5 | class WebmozartFacade extends \Webmozart\Assert\Assert |
|
6 | { |
|
7 | public function __construct() |
|
8 | { |
|
9 | } |
|
10 | ||
11 | protected function fire($methodName, $args) |
|
12 | { |
|
13 | if (method_exists(__CLASS__, $methodName)) { |
|
14 | return call_user_func_array(array(__CLASS__, $methodName), $args); |
|
15 | } |
|
16 | ||
17 | throw new \BadMethodCallException(); |
|
18 | } |
|
19 | ||
20 | public static function __callStatic($methodName, $args) |
|
21 | { |
|
22 | return $this->fire($methodName, $args); |
|
23 | } |
|
24 | } |
|
25 |