Move History

Fork Selected
  • 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);
        }
    }
    
  • Code
    • function rubegoldberg(){return __LINE__;}
    • function rubegoldberg(): int {
    • return __LINE__ >> 1;
    • }