Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (17 sloc) 0.437 kb
--TEST--
Check for Sundown::__construct arguments
--SKIPIF--
<?php if (!extension_loaded("sundown")) print "skip"; ?>
--FILE--
<?php
$a = new Sundown('a');
if (is_array($a->extensions) && is_null($a->enable_pants) && $a->data == 'a') {
echo "OK" .PHP_EOL;
}
$a = new Sundown('a',array('autolink'=>true));
if (isset($a->extensions['autolink']) && is_null($a->enable_pants) && $a->data == 'a') {
echo "OK" .PHP_EOL;
}
--EXPECT--
OK
OK
Jump to Line
Something went wrong with that request. Please try again.