public function testExcerptContentClassObject() { $app = $this->getApp(); $handler = new RecordHandler($app); $content = $app['storage']->getEmptyContent('pages'); $content->setValue('body', $this->original); $result = $handler->excerpt($content, 87); $this->assertSame($this->excerpt, (string) $result); }