public function testExcerptNonContentClassObject() { $app = $this->getApp(); $handler = new RecordHandler($app); $content = (new Snippet())->setCallback($this->original); $result = $handler->excerpt($content, 87); $this->assertSame($this->excerpt, (string) $result); }