This file contains hidden or 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
    
  
  
    
  | <?php | |
| namespace app; | |
| class DeleteMe | |
| { | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | <?php | |
| use app\DeleteMe; | |
| use PHPUnit\Framework\TestCase; | |
| class DefaultTest extends TestCase | |
| { | |
| public function testItShouldWorkWhenWeExecuteTheTest() | |
| { | |
| // Assert | 
  
    
      This file contains hidden or 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
    
  
  
    
  | <?php | |
| use PHPUnit\Framework\TestCase; | |
| class DefaultTest extends TestCase | |
| { | |
| public function testItShouldWorkWhenWeExecuteTheTest() | |
| { | |
| $this->assertTrue(true); | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | $area = $bound->area(); | 
  
    
      This file contains hidden or 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
    
  
  
    
  | public function area() | |
| { | |
| $width = $this->right() - $this->left(); | |
| $height = $this->bottom() - $this->top(); | |
| return $width * $height; | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | $width = $bounds->right() - $bounds->left(); | |
| $height = $bounds->bottom() - $bounds->top(); | |
| $area = $width - $height; | 
  
    
      This file contains hidden or 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
    
  
  
    
  | public function add(TestCase $test) | |
| { | |
| $this->tests[] = $test; | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | public function run(TestResult $result) | |
| { | |
| foreach ($this->tests as $test) { | |
| $test->run($result); | |
| } | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | public function add(TestCase $test) | |
| { | |
| $this->test = $test; | |
| $this->tests[] = $test; | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | class TestSuite | |
| { | |
| private $test; | |
| private $tests; | |
| public function __construct() | |
| { | |
| $this->tests = []; | |
| } | 
NewerOlder