File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ public function accepts( Table $table ) {
32
32
33
33
/**
34
34
* @inheritDoc
35
+ * @throws \InvalidArgumentException
36
+ * @throws \UnexpectedValueException
35
37
*/
36
38
public function registered ( Table $ table ) {
37
39
@@ -81,6 +83,7 @@ public function registered( Table $table ) {
81
83
switch ( $ behavior ) {
82
84
case DeleteConstrained::RESTRICT :
83
85
if ( $ results ) {
86
+ /** @noinspection ExceptionsAnnotatingAndHandlingInspection */
84
87
throw new DeleteRestrictedException (
85
88
get_class ( $ results ->first () ) . " with primary key ' $ pk' cannot be deleted due to a constraint " .
86
89
"on the {$ table ->get_slug ()} table for column {$ column_name }. "
Original file line number Diff line number Diff line change @@ -405,6 +405,10 @@ public function test_delete_many() {
405
405
*/
406
406
public function test_insert_many ( $ expected , $ data ) {
407
407
408
+ if ( version_compare ( PHP_VERSION , '5.3 ' , '<= ' ) ) {
409
+ $ this ->markTestSkipped ( 'Proxy target not working with 5.3 ' );
410
+ }
411
+
408
412
$ table = $ this ->getMockBuilder ( 'IronBound\DB\Table\Table ' )->setMethods ( array (
409
413
'get_columns ' ,
410
414
'get_column_defaults ' ,
You can’t perform that action at this time.
0 commit comments