public function testGetArrayCopyReturnsAnArrayWithPropertyValues() { $issue = new Issue(); $data = array('id' => 123, 'title' => 'some title'); $issue->exchangeArray($data); $copyArray = $issue->getArrayCopy(); $this->assertSame($data['id'], $copyArray['id'], '"id" was not set correctly'); $this->assertSame($data['title'], $copyArray['title'], '"title" was not set correctly'); }