/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/block-serialization-default-parser/test/test-parser.php
15 строк
329 B
Kite
Replace `dirname( __FILE__ )` with `__DIR__` (#23598)
10 ноя 2020, 10:53
Не верифицирован
10 ноя 2020, 10:53
a8371c4
Код
Авторство
О чём код?
<?php /** * PHP Test Helper * * Facilitates running PHP parser against same tests as the JS parser implementation. * * @package gutenberg */ // Include the default parser. require_once __DIR__ . '/../parser.php'; $parser = new WP_Block_Parser(); echo json_encode( $parser->parse( file_get_contents( 'php://stdin' ) ) );