Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add a functional test for Object::getRawData. It works.

  • Loading branch information...
commit 371ffd032c6255b16c55e12d3cfcaa17c05d3025 1 parent ab9f17c
@ornicar authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 test/Github/Tests/Functional/ObjectTest.php
View
16 test/Github/Tests/Functional/ObjectTest.php
@@ -0,0 +1,16 @@
+<?php
+
+class Github_Tests_Functional_ObjectTest extends PHPUnit_Framework_TestCase
+{
+ public function testGetRawData()
+ {
+ $username = 'ornicar';
+ $repo = 'php-github-api';
+ $sha1 = 'ab9f17c8ed85c0dd9f33ba8d2d61ebb570768158';
+
+ $github = new Github_Client();
+ $data = $github->getObjectApi()->getRawData($username, $repo, $sha1);
+
+ $this->assertRegexp('/Release version 3\.1/', $data);
+ }
+}

0 comments on commit 371ffd0

Please sign in to comment.
Something went wrong with that request. Please try again.