Skip to content

Commit 371ffd0

Browse files
committed
Add a functional test for Object::getRawData. It works.
1 parent ab9f17c commit 371ffd0

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
class Github_Tests_Functional_ObjectTest extends PHPUnit_Framework_TestCase
4+
{
5+
public function testGetRawData()
6+
{
7+
$username = 'ornicar';
8+
$repo = 'php-github-api';
9+
$sha1 = 'ab9f17c8ed85c0dd9f33ba8d2d61ebb570768158';
10+
11+
$github = new Github_Client();
12+
$data = $github->getObjectApi()->getRawData($username, $repo, $sha1);
13+
14+
$this->assertRegexp('/Release version 3\.1/', $data);
15+
}
16+
}

0 commit comments

Comments
 (0)