public function testXKIntersectAcceptsCallback() { $xao = new XArray(['x' => 1, 'ab' => 2, 'z' => 3]); $test = new CallbackTestMethods(); $obj = $xao->xkintersect(['a' => 4, 'abc' => 'xyz'], [$test, 'length_compare']); $this->assertEquals(['a' => 4], (array) $obj); }