$bibtex="@article{doe2000,title={Preferential polarization and its reversal in polycrystalline $\uppercase{B}i\uppercase{F}e\uppercase{O}_{3}$/$\uppercase{L}a_{0. 5}\uppercase{S}r_{0.5} \uppercase{C}o\uppercase{O}_{3}$ heterostructures},author={Jane Doe},journal={The Wordpress Journal},year=2000}";
$test_data=fopen('php://memory','x+');
fwrite($test_data,$bibtex);
fseek($test_data,0);
$db=newBibDataBase();
$_GET[Q_FILE]='sample.bib';
$db->update_internal("inline",$test_data);
$this->assertEquals('Preferential polarization and its reversal in polycrystalline $BiFeO_{3}$/$La_{0. 5}Sr_{0.5} CoO_{3}$ heterostructures',$db->bibdb['doe2000']->getTitle());