krakjoe/instrumental

此包的最新版本(1.0.0)没有可用的许可证信息。

1.0.0 2018-02-27 11:50 UTC

This package is auto-updated.

Last update: 2024-09-09 14:00:21 UTC


README

自2018年以来进行类 instrumentation

此包允许使用 Componere 对类进行 instrumentation

API

namespace Componere {
	class Instrumental {
		public function __construct(string $target);
		public function addOverride(string $method, \Closure $override);
		public function addInvariant(\Closure $handler);
		public function addPrecondition(string $method, \Closure $handler);
		public function addPostcondition(string $method, \Closure $handler);
		public function instrument();
	}
}