Index: trunk/phase3/tests/phpunit/languages/LanguageTest.php |
— | — | @@ -537,48 +537,48 @@ |
538 | 538 | return array( |
539 | 539 | array( |
540 | 540 | 0, |
541 | | - "0 B", |
542 | | - "Zero bytes" |
| 541 | + '0 B', |
| 542 | + 'Zero bytes' |
543 | 543 | ), |
544 | 544 | array( |
545 | 545 | 1024, |
546 | | - "1 KB", |
547 | | - "1 kilobyte" |
| 546 | + '1 KB', |
| 547 | + '1 kilobyte' |
548 | 548 | ), |
549 | 549 | array( |
550 | 550 | 1024 * 1024, |
551 | | - "1 MB", |
552 | | - "1,024 megabytes" |
| 551 | + '1 MB', |
| 552 | + '1,024 megabytes' |
553 | 553 | ), |
554 | 554 | array( |
555 | 555 | 1024 * 1024 * 1024, |
556 | | - "1 GB", |
557 | | - "1 gigabytes" |
| 556 | + '1 GB', |
| 557 | + '1 gigabytes' |
558 | 558 | ), |
559 | 559 | array( |
560 | 560 | pow( 1024, 4 ), |
561 | | - "1 TB", |
562 | | - "1 terabyte" |
| 561 | + '1 TB', |
| 562 | + '1 terabyte' |
563 | 563 | ), |
564 | 564 | array( |
565 | 565 | pow( 1024, 5 ), |
566 | | - "1 PB", |
567 | | - "1 petabyte" |
| 566 | + '1 PB', |
| 567 | + '1 petabyte' |
568 | 568 | ), |
569 | 569 | array( |
570 | 570 | pow( 1024, 6 ), |
571 | | - "1 EB", |
572 | | - "1,024 exabyte" |
| 571 | + '1 EB', |
| 572 | + '1,024 exabyte' |
573 | 573 | ), |
574 | 574 | array( |
575 | 575 | pow( 1024, 7 ), |
576 | | - "1 ZB", |
577 | | - "1 zetabyte" |
| 576 | + '1 ZB', |
| 577 | + '1 zetabyte' |
578 | 578 | ), |
579 | 579 | array( |
580 | 580 | pow( 1024, 8 ), |
581 | | - "1 YB", |
582 | | - "1 yottabyte" |
| 581 | + '1 YB', |
| 582 | + '1 yottabyte' |
583 | 583 | ), |
584 | 584 | // How big!? THIS BIG! |
585 | 585 | ); |
— | — | @@ -599,58 +599,58 @@ |
600 | 600 | return array( |
601 | 601 | array( |
602 | 602 | 0, |
603 | | - "0bps", |
604 | | - "0 bits per second" |
| 603 | + '0bps', |
| 604 | + '0 bits per second' |
605 | 605 | ), |
606 | 606 | array( |
607 | 607 | 999, |
608 | | - "999bps", |
609 | | - "999 bits per second" |
| 608 | + '999bps', |
| 609 | + '999 bits per second' |
610 | 610 | ), |
611 | 611 | array( |
612 | 612 | 1000, |
613 | | - "1kbps", |
614 | | - "1 kilobit per second" |
| 613 | + '1kbps', |
| 614 | + '1 kilobit per second' |
615 | 615 | ), |
616 | 616 | array( |
617 | 617 | 1000 * 1000, |
618 | | - "1Mbps", |
619 | | - "1 megabit per second" |
| 618 | + '1Mbps', |
| 619 | + '1 megabit per second' |
620 | 620 | ), |
621 | 621 | array( |
622 | 622 | pow( 10, 9 ), |
623 | | - "1Gbps", |
624 | | - "1 gigabit per second" |
| 623 | + '1Gbps', |
| 624 | + '1 gigabit per second' |
625 | 625 | ), |
626 | 626 | array( |
627 | 627 | pow( 10, 12 ), |
628 | | - "1Tbps", |
629 | | - "1 terabit per second" |
| 628 | + '1Tbps', |
| 629 | + '1 terabit per second' |
630 | 630 | ), |
631 | 631 | array( |
632 | 632 | pow( 10, 15 ), |
633 | | - "1Pbps", |
634 | | - "1 petabit per second" |
| 633 | + '1Pbps', |
| 634 | + '1 petabit per second' |
635 | 635 | ), |
636 | 636 | array( |
637 | 637 | pow( 10, 18 ), |
638 | | - "1Ebps", |
639 | | - "1 exabit per second" |
| 638 | + '1Ebps', |
| 639 | + '1 exabit per second' |
640 | 640 | ), |
641 | 641 | array( |
642 | 642 | pow( 10, 21 ), |
643 | | - "1Zbps", |
644 | | - "1 zetabit per second" |
| 643 | + '1Zbps', |
| 644 | + '1 zetabit per second' |
645 | 645 | ), |
646 | 646 | array( |
647 | 647 | pow( 10, 24 ), |
648 | | - "1Ybps", |
649 | | - "1 yottabit per second" |
| 648 | + '1Ybps', |
| 649 | + '1 yottabit per second' |
650 | 650 | ), |
651 | 651 | array( |
652 | 652 | pow( 10, 27 ), |
653 | | - "1,000Ybps", |
654 | | - "1,000 yottabits per second" |
| 653 | + '1,000Ybps', |
| 654 | + '1,000 yottabits per second' |
655 | 655 | ), |
656 | 656 | ); |
657 | 657 | } |
— | — | @@ -670,72 +670,88 @@ |
671 | 671 | return array( |
672 | 672 | array( |
673 | 673 | 0, |
674 | | - "0 seconds", |
| 674 | + '0 seconds', |
675 | 675 | ), |
676 | 676 | array( |
677 | 677 | 1, |
678 | | - "1 second", |
| 678 | + '1 second', |
679 | 679 | ), |
680 | 680 | array( |
681 | 681 | 2, |
682 | | - "2 seconds", |
| 682 | + '2 seconds', |
683 | 683 | ), |
684 | 684 | array( |
685 | 685 | 60, |
686 | | - "1 minute", |
| 686 | + '1 minute', |
687 | 687 | ), |
688 | 688 | array( |
689 | 689 | 2 * 60, |
690 | | - "2 minutes", |
| 690 | + '2 minutes', |
691 | 691 | ), |
692 | 692 | array( |
693 | 693 | 3600, |
694 | | - "1 hour", |
| 694 | + '1 hour', |
695 | 695 | ), |
696 | 696 | array( |
697 | 697 | 2 * 3600, |
698 | | - "2 hours", |
| 698 | + '2 hours', |
699 | 699 | ), |
700 | 700 | array( |
701 | 701 | 24 * 3600, |
702 | | - "1 day", |
| 702 | + '1 day', |
703 | 703 | ), |
704 | 704 | array( |
705 | 705 | 2 * 86400, |
706 | | - "2 days", |
| 706 | + '2 days', |
707 | 707 | ), |
708 | 708 | array( |
709 | 709 | 365.25 * 86400, // 365.25 * 86400 = 31557600 |
710 | | - "1 year", |
| 710 | + '1 year', |
711 | 711 | ), |
712 | 712 | array( |
713 | 713 | 2 * 31557600, |
714 | | - "2 years", |
| 714 | + '2 years', |
715 | 715 | ), |
716 | 716 | array( |
717 | 717 | 10 * 31557600, |
718 | | - "1 decade", |
| 718 | + '1 decade', |
719 | 719 | ), |
720 | 720 | array( |
721 | 721 | 20 * 31557600, |
722 | | - "2 decades", |
| 722 | + '2 decades', |
723 | 723 | ), |
724 | 724 | array( |
725 | 725 | 100 * 31557600, |
726 | | - "1 century", |
| 726 | + '1 century', |
727 | 727 | ), |
728 | 728 | array( |
729 | 729 | 200 * 31557600, |
730 | | - "2 centuries", |
| 730 | + '2 centuries', |
731 | 731 | ), |
732 | 732 | array( |
733 | 733 | 1000 * 31557600, |
734 | | - "1 millennium", |
| 734 | + '1 millennium', |
735 | 735 | ), |
736 | 736 | array( |
737 | 737 | 2000 * 31557600, |
738 | | - "2 millennia", |
| 738 | + '2 millennia', |
739 | 739 | ), |
| 740 | + array( |
| 741 | + 9001, |
| 742 | + '2 hours, 30 minutes and 1 second' |
| 743 | + ), |
| 744 | + array( |
| 745 | + 3601, |
| 746 | + '1 hour and 1 second' |
| 747 | + ), |
| 748 | + array( |
| 749 | + 31557600 + 2 * 86400 + 9000, |
| 750 | + '1 year, 2 days, 2 hours and 30 minutes' |
| 751 | + ), |
| 752 | + array( |
| 753 | + 42 * 1000 * 31557600 + 42, |
| 754 | + '42 millennia and 42 seconds' |
| 755 | + ), |
740 | 756 | ); |
741 | 757 | } |
742 | 758 | } |