Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Implemented #21408469: Implement PHP 5.4 binary number format
- Loading branch information
1 parent
dcf12c7
commit e3bccf1
Showing
11 changed files
with
192 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...urces/files/Code/ASTLiteral/testLiteralWithBrokenBinaryIntegerThrowsExpectedException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
function testLiteralWithBrokenBinaryIntegerThrowsExpectedException() | ||
{ | ||
return 0b100100100120; | ||
} |
5 changes: 5 additions & 0 deletions
5
src/test/resources/files/Code/ASTLiteral/testLiteralWithNonZeroBinaryIntegerValue.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
function testLiteralWithNonZeroBinaryIntegerValue() | ||
{ | ||
return 0b100100100110; | ||
} |
5 changes: 5 additions & 0 deletions
5
src/test/resources/files/Code/ASTLiteral/testLiteralWithNonZeroHexIntegerValue.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
function testLiteralWithNonZeroHexIntegerValue() | ||
{ | ||
return 0x926; | ||
} |
5 changes: 5 additions & 0 deletions
5
src/test/resources/files/Code/ASTLiteral/testLiteralWithNonZeroOctalIntegerValue.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
function testLiteralWithNonZeroOctalIntegerValue() | ||
{ | ||
return 02342; | ||
} |
5 changes: 5 additions & 0 deletions
5
src/test/resources/files/Code/ASTLiteral/testLiteralWithZeroBinaryIntegerValue.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
function testLiteralWithZeroBinaryIntegerValue() | ||
{ | ||
return 0b0; | ||
} |
5 changes: 5 additions & 0 deletions
5
src/test/resources/files/Code/ASTLiteral/testLiteralWithZeroHexIntegerValue.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
function testLiteralWithZeroHexIntegerValue() | ||
{ | ||
return 0x0; | ||
} |
5 changes: 5 additions & 0 deletions
5
src/test/resources/files/Code/ASTLiteral/testLiteralWithZeroIntegerValue.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
function testLiteralWithZeroIntegerValue() | ||
{ | ||
return 0; | ||
} |
5 changes: 5 additions & 0 deletions
5
src/test/resources/files/Code/ASTLiteral/testLiteralWithZeroOctalIntegerValue.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
function testLiteralWithZeroOctalIntegerValue() | ||
{ | ||
return 00; | ||
} |