Skip to content

Commit 38c834d

Browse files
Endpoint\Client: Add lastUsed value to tests & code examples (#271)
1 parent 5e7e6ee commit 38c834d

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

examples/Client/get.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
echo 'Id: ' . $details->id . PHP_EOL;
2626
echo 'Name: ' . $details->name . PHP_EOL;
2727
echo 'Token: ' . $details->token . PHP_EOL;
28+
echo 'Last used: ' . $details->lastUsed . PHP_EOL;
2829
echo PHP_EOL;
2930
}
3031
} catch (EndpointException | GotifyException $err) {

tests/Endpoints/ClientTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public function testGetAll(): void
5959
$this->assertObjectHasProperty('id', $client);
6060
$this->assertObjectHasProperty('name', $client);
6161
$this->assertObjectHasProperty('token', $client);
62+
$this->assertObjectHasProperty('lastUsed', $client);
6263
}
6364
}
6465

0 commit comments

Comments
 (0)