public function test_should_return_empty_commit() { $commit = new WordPress_GitHub_Sync_Commit(new stdClass()); $this->assertSame('', $commit->sha()); $this->assertSame('', $commit->url()); $this->assertFalse($commit->author()); $this->assertSame('', $commit->author_email()); $this->assertFalse($commit->committer()); $this->assertSame('', $commit->message()); $this->assertEmpty($commit->parents()); $this->assertSame('', $commit->tree_sha()); }