Ejemplo n.º 1
0
 public function testHasDeprecatedGetEmitter()
 {
     try {
         $client = new puzzle_Client();
         $client->getEventDispatcher();
     } catch (Exception $e) {
         if (version_compare(PHP_VERSION, '5.3') >= 0) {
             $this->assertInstanceOf('PHPUnit_Framework_Error_Deprecated', $e);
         } else {
             $this->assertInstanceOf('PHPUnit_Framework_Error_Notice', $e);
         }
         return;
     }
     $this->fail('Should have thrown exception');
 }