bell() public static method

Bells.
public static bell ( integer $count = 1 )
$count integer Number of times that the bells must ring.
Beispiel #1
0
                    $check = ord($actual[$i]) == ord($expected[$i]) ? true : false;
                    if ($check) {
                        break;
                    }
                }
                expect($check)->toBe(true);
            };
        });
        it("leaves string unchanged whith no options", function () {
            expect(Cli::color("String"))->toBe("String");
        });
        it("applies a color using a string as options", function () {
            $this->check(Cli::color("String", "yellow"), "Srting");
        });
        it("applies a complex color using a semicolon separated string as options", function () {
            $this->check(Cli::color("String", "n;yellow;100"), "Srting");
            $this->check(Cli::color("String", "4;red;100"), "Srting");
            $this->check(Cli::color("String", "n;100;100"), "Srting");
        });
        it("applies the 39 default color with unknown color name", function () {
            $this->check(Cli::color("String", "some_strange_color"), "Srting");
        });
    });
    describe('->bell()', function () {
        it("bells", function () {
            expect(function () {
                Cli::bell(2);
            })->toEcho(str_repeat("", 2));
        });
    });
});