File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed 
tests/DeepCopyTest/Reflection Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11/composer.phar 
22/composer.lock 
33/vendor /* 
4+ .phpunit.result.cache 
Original file line number Diff line number Diff line change 1414        "php" : " ^7.1 || ^8.0" 
1515    },
1616    "require-dev" : {
17-         "doctrine/collections" : " ^1.0 " 
18-         "doctrine/common" : " ^2.6 " 
19-         "phpunit/phpunit" : " ^7.1 " 
17+         "doctrine/collections" : " ^1.6 " 
18+         "doctrine/common" : " ^2.13 " 
19+         "phpunit/phpunit" : " ^7.5 || ^8.5 || ^9.5 " 
2020    },
2121    "autoload" : {
2222        "psr-4" : {
Original file line number Diff line number Diff line change 22
33namespace  DeepCopyTest \Reflection ;
44
5+ use  DeepCopy \Exception \PropertyException ;
56use  DeepCopy \Reflection \ReflectionHelper ;
67use  PHPUnit \Framework \TestCase ;
78use  ReflectionClass ;
@@ -60,13 +61,11 @@ public function provideProperties()
6061        ];
6162    }
6263
63-     /** 
64-      * @expectedException \DeepCopy\Exception\PropertyException 
65-      */ 
6664    public  function  test_it_cannot_retrieve_a_non_existent_prperty ()
6765    {
6866        $ objectnew  ReflectionHelperTestChild ();
6967
68+         $ this expectException (PropertyException::class);
7069        ReflectionHelper::getProperty ($ object'non existent property ' );
7170    }
7271}
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments