public function testKeysFilteredByIdenticalValue() { $expected = [0 => 'bar']; $xao = new XArray(['foo' => true, 'bar' => 1, 'x' => '1']); $obj = $xao->keys(1, true); $this->assertEquals($expected, (array) $obj); }