Skip to content
This repository was archived by the owner on Aug 24, 2021. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions ext/standard/tests/general_functions/gettype_basic.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
--TEST--
Check for "unknown type"
--CREDITS--
Yulia Kostrikova <yuliakostrikova@gmail.com>
# TestFest 2017 - Kharkiv PHP UG 2017-10-28
--FILE--
<?php
$fileName = dirname(__FILE__)."/test.txt";
$r = fopen($fileName,'w');
fclose($r);
echo gettype($r);
?>

--CLEAN--
<?php
$fileName = dirname(__FILE__)."/test.txt";
unlink($fileName);
?>

--EXPECTF--
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit:

Suggested change
--EXPECTF--
--EXPECT--

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, this one for example, I can also fix when I'll be merging it upstream. Let me know also please if you've spotted anything else...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@petk Should be RTM after this quick fix.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome...

unknown type