public function testGetDataByKey() { $this->_object->setData(array('key' => 'value')); $this->assertEquals('value', $this->_object->getDataByKey('key')); $this->assertNull($this->_object->getDataByKey('empty')); }