/** * @covers ::count */ public function test_count($value = true) { self::assertTrue(1 === testNew($value)->count(), 'Count should be the constant 1'); }
public function throwProvider() { return ['Not exception' => [5, P\Pot::class], 'Pot' => [P\Pot(5), P\Pot::class], 'Exception' => [new \Exception('5'), \Exception::class]]; }