function testCallback() { $callback = function (ExactArgument $argument) { return $argument->value() == 'foo'; }; $this->assert(Argument::callback($callback)->accepts(new ExactArgument('foo'))); $this->assert->not(Argument::callback($callback)->accepts(new ExactArgument('bar'))); }