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