@@ 25-36 (lines=12) @@ | ||
22 | * @test |
|
23 | * @throws UnrecognizedId |
|
24 | */ |
|
25 | public function it_throws_an_exception_when_no_display_name_is_provided() |
|
26 | { |
|
27 | if (method_exists($this, 'setExpectedException')) { |
|
28 | $this->setExpectedException('Syntax\SteamApi\Exceptions\UnrecognizedId'); |
|
29 | } else { |
|
30 | $this->expectException('Syntax\SteamApi\Exceptions\UnrecognizedId'); |
|
31 | } |
|
32 | ||
33 | $steamObject = $this->steamClient->user($this->id64)->ResolveVanityURL(); |
|
34 | ||
35 | $this->assertEquals('No match', $steamObject); |
|
36 | } |
|
37 | ||
38 | /** @test |
|
39 | * @throws UnrecognizedId |
|
@@ 103-115 (lines=13) @@ | ||
100 | } |
|
101 | ||
102 | /** @test */ |
|
103 | public function it_throws_exception_to_invalid_relationship_types() |
|
104 | { |
|
105 | $expectedMessage = 'Provided relationship [nonFriend] is not valid. Please select from: all, friend'; |
|
106 | ||
107 | if (method_exists($this, 'setExpectedException')) { |
|
108 | $this->setExpectedException('InvalidArgumentException', $expectedMessage); |
|
109 | } else { |
|
110 | $this->expectException('InvalidArgumentException'); |
|
111 | $this->expectExceptionMessage($expectedMessage); |
|
112 | } |
|
113 | ||
114 | $this->steamClient->user($this->id64)->GetFriendList('nonFriend'); |
|
115 | } |
|
116 | ||
117 | /** @test */ |
|
118 | public function it_gets_the_bans_for_the_base_user() |