| Conditions | 4 |
| Paths | 4 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function testProperties($args) |
||
| 33 | { |
||
| 34 | $class = $this->getClass(); |
||
| 35 | $resource = new $class(); |
||
| 36 | |||
| 37 | foreach ($args as $arg) { |
||
| 38 | list($method) = $arg; |
||
| 39 | |||
| 40 | try { |
||
| 41 | $resource->{$method}(); |
||
| 42 | } catch (TypeError $e) { |
||
| 43 | self::assertTrue(true); |
||
| 44 | continue; |
||
| 45 | } catch (Throwable $t) { |
||
| 46 | self::fail('Should have thrown a TypeError instead of a ' . get_class($t)); |
||
| 47 | } |
||
| 48 | } |
||
| 49 | } |
||
| 50 | } |
||
| 51 |