Last active
          August 29, 2015 14:22 
        
      - 
      
 - 
        
Save Pierozi/cc4cbce154a397f758ec to your computer and use it in GitHub Desktop.  
    Atoum TU with PsySh eval
  
        
  
    
      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 | |
| { | |
| class Foo | |
| { | |
| public function get() | |
| { | |
| $string = 'foobarbaz'; | |
| eval(Psy\sh()); | |
| return $string; | |
| } | |
| } | |
| } | |
| namespace tests\units | |
| { | |
| use atoum; | |
| class Foo extends atoum | |
| { | |
| public function testGet() | |
| { | |
| $this | |
| ->if($this->newTestedInstance) | |
| ->then | |
| ->string($this->testedInstance->get()) | |
| ->isEqualTo('foobarbaz'); | |
| } | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment