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