Skip to content

Commit dfc1381

Browse files
committed
added segments method
1 parent fd39642 commit dfc1381

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/IntercomSegmentsTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
use Intercom\IntercomSegments;
4+
5+
class IntercomSegmentTest extends PHPUnit_Framework_TestCase {
6+
7+
public function testSegmentList()
8+
{
9+
$stub = $this->getMockBuilder('Intercom\IntercomClient')->disableOriginalConstructor()->getMock();
10+
$stub->method('get')->willReturn('foo');
11+
12+
$segments = new IntercomSegments($stub);
13+
$this->assertEquals('foo', $segments->getSegments());
14+
}
15+
}

0 commit comments

Comments
 (0)