Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: fe4cb28947
Fetching contributors…

Cannot retrieve contributors at this time

file 17 lines (16 sloc) 0.377 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
--TEST--
Check for Git2\Blob::__toString
--SKIPIF--
<?php if (!extension_loaded("git2")) print "skip"; ?>
--FILE--
<?php
$path = __DIR__ . '/fixtures/testrepo.git';
$repo = new Git2\Repository($path);
$id = Git2\Blob::create($repo, "Hello World");

if ($id == "5e1c309dae7f45e0f39b1bf3ac3cd9db12e7d689") {
echo "OK" . PHP_EOL;
} else {
echo "FAIL" . PHP_EOL;
}
--EXPECT--
OK
Something went wrong with that request. Please try again.