/** * @return TwitterEntitiesSerializer */ public static function build() { return new self(TwitterExtendedEntitySerializer::build(), TwitterHashtagSerializer::build(), TwitterMediaSerializer::build(), TwitterSymbolSerializer::build(), TwitterUrlSerializer::build(), TwitterUserMentionSerializer::build()); }
/** * @test */ public function itShouldBuildUsingStaticBuilder() { $serializer = TwitterUrlSerializer::build(); $this->assertInstanceOf(TwitterUrlSerializer::class, $serializer); }
private function itWillUnserializeUrl() { $this->urlSerializer->shouldReceive('unserialize')->with($this->serializedUrl)->andReturn($this->url); }