/** * Test reduce() * * @return void */ public function testReduce() { $data = static::articleData(); $result = Hash::reduce($data, '{n}.Article.id', [$this, 'reduceCallback']); $this->assertEquals(15, $result); }
/** * Test reduce() * * @return void */ public function testReduce() { $data = static::articleData(); $result = Hash::reduce($data, '{n}.Article.id', [$this, 'reduceCallback']); $this->assertEquals(15, $result); }