public function testWrapStatic() { $c = new Container(); $c->wrap('Fixture\\Wrapped', ['psps'], function ($invocation, $args) { list($a) = $args; ++$a; return $invocation($a); }); $wrapped = $c->newInstance('Fixture\\Wrapped'); $this->assertEquals(42, $wrapped::psps(20)); }