예제 #1
0
 public function testCanSearchByKey()
 {
     $collection = new Collection(array('foo' => 'bar', 'BaZ' => 'pho'));
     $this->assertEquals('foo', $collection->keySearch('FOO'));
     $this->assertEquals('BaZ', $collection->keySearch('baz'));
     $this->assertEquals(false, $collection->keySearch('Bar'));
 }