-
Code function rubegoldberg(): int { return __LINE__ >> 1; }
Test Cases <?php use PHPUnit\Framework\TestCase; // PHPUnit Test Examples: // TODO: Replace examples and use TDD by writing your own tests class ExampleTest extends TestCase { // test function names should start with "test" public function testThatSomethingShouldHappen() { $this->assertEquals(rubegoldberg(), 1); } }
Output:
-
Code function rubegoldberg(){return __LINE__;}- function rubegoldberg(): int {
- return __LINE__ >> 1;
- }
- All
- {{group.name}} ({{group.count}})
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}