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