コード例 #1
0
ファイル: test-collection.php プロジェクト: iCaspar/WPDC_Core
 public function test_where()
 {
     $c = new Collection(array(array('v' => 1), array('v' => 2), array('v' => 3), array('v' => '3'), array('v' => 4)));
     $this->assertEquals([['v' => 3]], $c->where('v', 3)->values()->all());
     $this->assertEquals([['v' => 3], ['v' => '3']], $c->whereLoose('v', 3)->values()->all());
 }