8000 Fix test for change in blob create return · libgit2/php-git@6b60e8f · GitHub
[go: up one dir, main page]

Skip to content

Commit 6b60e8f

Browse files
committed
Fix test for change in blob create return
1 parent 45e29aa commit 6b60e8f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
--TEST--
2+
Check for git_blob_create_frombuffer presence
3+
--SKIPIF--
4+
<?php if (!extension_loaded("git2")) print "skip"; ?>
5+
--FILE--
6+
<?php
7+
$repositroy = git_repository_init("/tmp/a");
8+
echo git_blob_create_frombuffer($repositroy, "Helo World");
9+
10+
$repositroy = git_repository_new();
11+
$result = @git_blob_create_frombuffer($repositroy, "Helo World");
12+
if ($result===FALSE) {
13+
echo "OK" . PHP_EOL;
14+
}
15+
--EXPECT--
16+
826a9a65bc435bb1f1812433fa8fd5fa2ee9d678
17+
OK

0 commit comments

Comments
 (0)
0