Skip to content

Commit

Permalink
Add minimal tests against #26
Browse files Browse the repository at this point in the history
  • Loading branch information
hnw committed Dec 7, 2017
1 parent 0dfa27e commit 8758a6d
Show file tree
Hide file tree
Showing 10 changed files with 210 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/issue_026_01.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
--TEST--
Check for issue #26 (Unexpected segmentation fault after homebrew installation #26)
--SKIPIF--
<?php
$required_version = "5.3";
include(__DIR__."/tests-skipcheck.inc.php");
--INI--
date.timezone=GMT
timecop.func_override=1
--FILE--
<?php
class Carbon extends DateTime
{
public static function createFromFormat($format, $time, $tz = null)
{
return "foobar\n";
}
}
echo Carbon::createFromFormat(null,null);
--EXPECT--
foobar
21 changes: 21 additions & 0 deletions tests/issue_026_02.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
--TEST--
Check for issue #26 (Unexpected segmentation fault after homebrew installation #26)
--SKIPIF--
<?php
$required_version = "5.3";
include(__DIR__."/tests-skipcheck.inc.php");
--INI--
date.timezone=GMT
timecop.func_override=1
--FILE--
<?php
class Carbon extends DateTime
{
public static function createFromFormat($format, $time, $tz = null)
{
return "foobar\n";
}
}
echo Carbon::createFromFormat(null,null);
--EXPECT--
foobar
21 changes: 21 additions & 0 deletions tests/issue_026_03.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
--TEST--
Check for issue #26 (Unexpected segmentation fault after homebrew installation #26)
--SKIPIF--
<?php
$required_version = "5.3";
include(__DIR__."/tests-skipcheck.inc.php");
--INI--
date.timezone=GMT
timecop.func_override=1
--FILE--
<?php
class Carbon extends DateTime
{
public static function createFromFormat($format, $time, $tz = null)
{
return "foobar\n";
}
}
echo Carbon::createFromFormat(null,null);
--EXPECT--
foobar
21 changes: 21 additions & 0 deletions tests/issue_026_04.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
--TEST--
Check for issue #26 (Unexpected segmentation fault after homebrew installation #26)
--SKIPIF--
<?php
$required_version = "5.3";
include(__DIR__."/tests-skipcheck.inc.php");
--INI--
date.timezone=GMT
timecop.func_override=1
--FILE--
<?php
class Carbon extends DateTime
{
public static function createFromFormat($format, $time, $tz = null)
{
return "foobar\n";
}
}
echo Carbon::createFromFormat(null,null);
--EXPECT--
foobar
21 changes: 21 additions & 0 deletions tests/issue_026_05.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
--TEST--
Check for issue #26 (Unexpected segmentation fault after homebrew installation #26)
--SKIPIF--
<?php
$required_version = "5.3";
include(__DIR__."/tests-skipcheck.inc.php");
--INI--
date.timezone=GMT
timecop.func_override=1
--FILE--
<?php
class Carbon extends DateTime
{
public static function createFromFormat($format, $time, $tz = null)
{
return "foobar\n";
}
}
echo Carbon::createFromFormat(null,null);
--EXPECT--
foobar
21 changes: 21 additions & 0 deletions tests/issue_026_06.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
--TEST--
Check for issue #26 (Unexpected segmentation fault after homebrew installation #26)
--SKIPIF--
<?php
$required_version = "5.3";
include(__DIR__."/tests-skipcheck.inc.php");
--INI--
date.timezone=GMT
timecop.func_override=1
--FILE--
<?php
class Carbon extends DateTime
{
public static function createFromFormat($format, $time, $tz = null)
{
return "foobar\n";
}
}
echo Carbon::createFromFormat(null,null);
--EXPECT--
foobar
21 changes: 21 additions & 0 deletions tests/issue_026_07.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
--TEST--
Check for issue #26 (Unexpected segmentation fault after homebrew installation #26)
--SKIPIF--
<?php
$required_version = "5.3";
include(__DIR__."/tests-skipcheck.inc.php");
--INI--
date.timezone=GMT
timecop.func_override=1
--FILE--
<?php
class Carbon extends DateTime
{
public static function createFromFormat($format, $time, $tz = null)
{
return "foobar\n";
}
}
echo Carbon::createFromFormat(null,null);
--EXPECT--
foobar
21 changes: 21 additions & 0 deletions tests/issue_026_08.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
--TEST--
Check for issue #26 (Unexpected segmentation fault after homebrew installation #26)
--SKIPIF--
<?php
$required_version = "5.3";
include(__DIR__."/tests-skipcheck.inc.php");
--INI--
date.timezone=GMT
timecop.func_override=1
--FILE--
<?php
class Carbon extends DateTime
{
public static function createFromFormat($format, $time, $tz = null)
{
return "foobar\n";
}
}
echo Carbon::createFromFormat(null,null);
--EXPECT--
foobar
21 changes: 21 additions & 0 deletions tests/issue_026_09.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
--TEST--
Check for issue #26 (Unexpected segmentation fault after homebrew installation #26)
--SKIPIF--
<?php
$required_version = "5.3";
include(__DIR__."/tests-skipcheck.inc.php");
--INI--
date.timezone=GMT
timecop.func_override=1
--FILE--
<?php
class Carbon extends DateTime
{
public static function createFromFormat($format, $time, $tz = null)
{
return "foobar\n";
}
}
echo Carbon::createFromFormat(null,null);
--EXPECT--
foobar
21 changes: 21 additions & 0 deletions tests/issue_026_10.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
--TEST--
Check for issue #26 (Unexpected segmentation fault after homebrew installation #26)
--SKIPIF--
<?php
$required_version = "5.3";
include(__DIR__."/tests-skipcheck.inc.php");
--INI--
date.timezone=GMT
timecop.func_override=1
--FILE--
<?php
class Carbon extends DateTime
{
public static function createFromFormat($format, $time, $tz = null)
{
return "foobar\n";
}
}
echo Carbon::createFromFormat(null,null);
--EXPECT--
foobar

0 comments on commit 8758a6d

Please sign in to comment.