/** * tests the __toString() functionality */ public function testToString() { $valueObject = new Memory\Value('0123456789', new DummyMovableContainer()); $this->assertEquals($valueObject->__toString(), '0123456789'); $this->assertEquals(strlen($valueObject), 10); $this->assertEquals((string) $valueObject, '0123456789'); }
/** * Start modifications trace * * @internal */ public function startTrace() { if (!($this->state & self::LOADED)) { $this->memManager->load($this, $this->id); $this->state |= self::LOADED; } $this->value->startTrace(); }