/** * @covers ResultSet::getAttributes */ public function testGetAttributes() { $this->assertEmpty($this->result->getAttributes()); $this->result = new \ResultSet(array('category' => 'foo', 'year' => '1979', 'month' => '11')); $attrs = $this->result->getAttributes(); $this->assertArrayHasKey("year", $attrs); }