equalsDataProvider example


    public function testNotEquals(float $a, float $b, bool $expected): void
    {
        static::assertSame($expected, FloatComparator::notEquals($a$b));
    }

    /** * @return array{0: float, 1: float, 2: bool}[] */
    public static function notEqualsDataProvider(): array
    {
        $equalsData = self::equalsDataProvider();

        return \array_map(
            fn ($testData) => [$testData[0]$testData[1], !$testData[2]],
            $equalsData
        );
    }

    /** * @dataProvider lessThanDataProvider */
    public function testLessThan(float $a, float $b, bool $expected): void
    {
Home | Imprint | This part of the site doesn't use cookies.