Changeset 48937 for trunk/tests/phpunit/tests/pomo/noopTranslations.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/pomo/noopTranslations.php
r46586 r48937 19 19 20 20 function test_get_header() { 21 $this->assert Equals( false,$this->noop->get_header( 'Content-Type' ) );21 $this->assertFalse( $this->noop->get_header( 'Content-Type' ) ); 22 22 } 23 23 24 24 function test_add_entry() { 25 25 $this->noop->add_entry( $this->entry ); 26 $this->assert Equals( array(), $this->noop->entries );26 $this->assertSame( array(), $this->noop->entries ); 27 27 } 28 28 29 29 function test_set_header() { 30 30 $this->noop->set_header( 'header', 'value' ); 31 $this->assert Equals( array(), $this->noop->headers );31 $this->assertSame( array(), $this->noop->headers ); 32 32 } 33 33 34 34 function test_translate_entry() { 35 35 $this->noop->add_entry( $this->entry ); 36 $this->assert Equals( false,$this->noop->translate_entry( $this->entry ) );36 $this->assertFalse( $this->noop->translate_entry( $this->entry ) ); 37 37 } 38 38 39 39 function test_translate() { 40 40 $this->noop->add_entry( $this->entry ); 41 $this->assert Equals( 'baba', $this->noop->translate( 'baba' ) );41 $this->assertSame( 'baba', $this->noop->translate( 'baba' ) ); 42 42 } 43 43 44 44 function test_plural() { 45 45 $this->noop->add_entry( $this->plural_entry ); 46 $this->assert Equals( 'dyado', $this->noop->translate_plural( 'dyado', 'dyados', 1 ) );47 $this->assert Equals( 'dyados', $this->noop->translate_plural( 'dyado', 'dyados', 11 ) );48 $this->assert Equals( 'dyados', $this->noop->translate_plural( 'dyado', 'dyados', 0 ) );46 $this->assertSame( 'dyado', $this->noop->translate_plural( 'dyado', 'dyados', 1 ) ); 47 $this->assertSame( 'dyados', $this->noop->translate_plural( 'dyado', 'dyados', 11 ) ); 48 $this->assertSame( 'dyados', $this->noop->translate_plural( 'dyado', 'dyados', 0 ) ); 49 49 } 50 50 }
Note: See TracChangeset
for help on using the changeset viewer.