Update test php file
Some checks failed
timw4mail/php-kilo/pipeline/head There was a failure building this commit
Some checks failed
timw4mail/php-kilo/pipeline/head There was a failure building this commit
This commit is contained in:
parent
f2177e0b40
commit
5598636df1
@ -630,7 +630,7 @@ class Row {
|
|||||||
|
|
||||||
$char = $token['char'];
|
$char = $token['char'];
|
||||||
$charLen = strlen($char);
|
$charLen = strlen($char);
|
||||||
if ($charLen === 0 || $offset >= $this->rsize)
|
if ($charLen === 0)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
10
test.php
10
test.php
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
interface Ifoo {}
|
interface Ifoo {}
|
||||||
|
|
||||||
|
// Let's see emoji! 🕯️😸⛩⛪
|
||||||
abstract class Foo implements Ifoo {
|
abstract class Foo implements Ifoo {
|
||||||
/**
|
/**
|
||||||
* @param int $a
|
* @param int $a
|
||||||
@ -64,6 +65,10 @@ trait Baz {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class BazFoo {
|
||||||
|
use Baz;
|
||||||
|
}
|
||||||
|
|
||||||
$square = fn (int $x) => $x ** 2;
|
$square = fn (int $x) => $x ** 2;
|
||||||
|
|
||||||
foreach ([-1, 0, 1, 2] as $x)
|
foreach ([-1, 0, 1, 2] as $x)
|
||||||
@ -100,7 +105,7 @@ $q = ($x !== 2)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
Heredoc
|
Heredoc
|
||||||
*/$z = $x + $y;
|
*/$z = $x + $y[0];
|
||||||
$sql = <<<SQL
|
$sql = <<<SQL
|
||||||
SELECT * FROM "foo" WHERE "bar"='baz' AND id={$x};
|
SELECT * FROM "foo" WHERE "bar"='baz' AND id={$x};
|
||||||
SQL;
|
SQL;
|
||||||
@ -117,7 +122,8 @@ TEMPLATE;
|
|||||||
<title>HTML</title>
|
<title>HTML</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1><?= $_SERVER['HTTP_HOST'] ?></h1>
|
<h1>Test</h1>
|
||||||
|
<div><?php $bf = new BazFoo(); print_r($bf->about()) ?></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
<?php exit(); ?>
|
<?php exit(); ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user