for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
require_once 'base/PHPushbulletTestBase.php';
class UserTest extends PHPushbulletTestBase
{
/** @test */
public function it_can_send_to_a_user()
$response = $this->pushResponse([
'type' => 'note',
'title' => 'Reminder',
'body' => 'Do this thing',
]);
$this->mock([
$this->okResponse($response),
$response = $this->pushbullet->user('[email protected]')->note('Title', 'Body');
$this->assertInternalType('array', $response);
$this->assertCount(1, $response);
$this->assertRequestHistory(['pushes']);
}