public function testDeprecatedExpects_Negative() { function deprecatedExpectsNegativeTest($arg1) { expects($arg1, 'a positive integer', function ($arg) { return is_int($arg) && $arg > 0; }); } $this->assertNull(deprecatedExpectsNegativeTest(-1)); }