Changeset 12996
- Timestamp:
- 11/14/08 07:47:07 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.2/lib/test/sfTestFunctionalBase.class.php
r11920 r12996 522 522 if (($errno & error_reporting()) == 0) 523 523 { 524 return ;524 return false; 525 525 } 526 526 … … 529 529 { 530 530 case E_WARNING: 531 throw new Exception(sprintf($msg, 'warning')); 531 $msg = printf($msg, 'warning'); 532 throw new RuntimeException($msg); 532 533 break; 533 534 case E_NOTICE: 534 throw new Exception(sprintf($msg, 'notice')); 535 $msg = printf($msg, 'notice'); 536 throw new RuntimeException(); 535 537 break; 536 538 case E_STRICT: 537 throw new Exception(sprintf($msg, 'strict')); 539 $msg = printf($msg, 'strict'); 540 throw new RuntimeException($msg); 538 541 break; 539 542 case E_RECOVERABLE_ERROR: 540 throw new Exception(sprintf($msg, 'catchable')); 543 $msg = printf($msg, 'catchable'); 544 throw new RuntimeException($msg); 541 545 break; 542 546 } 547 548 return false; 543 549 } 544 550

