View = new View(); static::setAppNamespace(); } /** * tearDown method */ public function tearDown(): void { parent::tearDown(); $this->clearPlugins(); unset($this->View); } /** * Provider for method proxying. * * @return array */ public function methodProvider(): array { return [ ['precision', 1.23], ['toReadableSize', 1.23], ['toPercentage', 1.23], ]; } /** * Tests calls are proxied to Number class. * * @dataProvider methodProvider */ public function testMethodProxying(string $method, mixed $arg): void { $helper = new NumberHelper($this->View); $this->assertNotNull($helper->{$method}($arg)); } }