public function testScope() { Item::insert(array(array('name' => 'knife', 'type' => 'sharp'), array('name' => 'spoon', 'type' => 'round'))); $sharp = Item::sharp()->get(); $this->assertEquals(1, $sharp->count()); }