public function testGetOldValue() { $started_with = $this->writer->getName(); $this->writer->setName('Lew Nikolajewitsch Tolstoi'); $this->assertSame('Lew Nikolajewitsch Tolstoi', $this->writer->getName()); $this->assertSame($started_with, $this->writer->getOldFieldValue('name')); $this->assertEquals(['name' => $started_with], $this->writer->getOldValues()); }