/** * @expectedException RuntimeException */ public function testJoinWithNonscalarArray() { $xao = new XArray([1, ['foo'], 7]); $xao->join('-'); }