/** * @test */ public function itShouldBuildUsingStaticBuilder() { $serializer = TwitterHashtagSerializer::build(); $this->assertInstanceOf(TwitterHashtagSerializer::class, $serializer); }
/** * @return TwitterEntitiesSerializer */ public static function build() { return new self(TwitterExtendedEntitySerializer::build(), TwitterHashtagSerializer::build(), TwitterMediaSerializer::build(), TwitterSymbolSerializer::build(), TwitterUrlSerializer::build(), TwitterUserMentionSerializer::build()); }