File: parse-ini-env-section.phpt

package info (click to toggle)
phpunit 13.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 52,072 kB
  • sloc: php: 106,613; xml: 2,216; makefile: 116; sh: 88
file content (22 lines) | stat: -rw-r--r-- 469 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Can parse --INI-- and --ENV-- sections
--SKIPIF--
<?php declare(strict_types=1);
if (extension_loaded('xdebug')) {
    print 'skip: Extension xdebug must not be loaded.';
}
--INI--
date.default_latitude=1.337
dummy.key
--ENV--
PHPUNIT_ENV=phpunit-env-section
--FILE--
<?php
var_dump(ini_get('date.default_latitude'));
var_dump(ini_get('dummy.key'));
var_dump(getenv('PHPUNIT_ENV'));
?>
--EXPECT--
string(5) "1.337"
bool(false)
string(19) "phpunit-env-section"