grithin / phpunit
PHPUnit tools
Installs: 6
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/grithin/phpunit
Requires
- php: >=7.2
- grithin/phpbase: ^5.0
This package is not auto-updated.
Last update: 2025-09-26 06:47:48 UTC
README
$closure = function(){ throw new \Exception; }; $this->assert_exception($closure); # pass with 1 assertion $this->assert_no_exception($closure); # fail
assert_method_result
class Test extends TestCase{ use Grithin\Phpunit\TestTrait; $this->assert_equal_standard($expect, $input, 'merge_deep', 'test straigt list merge'); function __construct(){ parent::__construct(); $this->class = \Grithin\Arrays::class; # set this to use `assert_method_result` } function test(){ $x = ['bill'=>['moe'=>'bob']] $this->assert_method_result('bob', 'bill.moe', 'get', 'Array::get failed'); }