File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public function getSource(): ?string
4444 return (isset ($ this ->data ['source ' ]) ? $ this ->data ['source ' ] : null );
4545 }
4646
47- public function isWithheld (): ?bool
47+ public function isWithheld (): ?array
4848 {
4949 return (isset ($ this ->data ['withheld ' ]) ? $ this ->data ['withheld ' ] : null );
5050 }
Original file line number Diff line number Diff line change @@ -38,10 +38,13 @@ public function testGetTimeline(): void
3838 {
3939 $ client = new TweetClient (bearerToken: $ _ENV ['TWITTER_BEARER_TOKEN ' ]);
4040
41- $ response = $ client ->getTimeline ('12 ' , 10 );
41+ $ response = $ client ->getTimeline ('1558929312547577858 ' , 5 );
4242
4343 $ this ->assertInstanceOf (Tweets::class, $ response );
44- $ this ->assertCount (10 , $ response ->all ());
44+ $ this ->assertCount (5 , $ response ->all ());
45+
46+ die (var_dump ($ response ->all ()[0 ]));
47+
4548 $ this ->assertTweetFieldsAreSet ($ response ->all ()[0 ]);
4649 }
4750
You can’t perform that action at this time.
0 commit comments