You appear to be a bot. Output may be restricted
Description
Usage
PluralFormsTest::test_cache();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/pomo/pluralForms.php
Lines:
1 to 16 of 16
public function test_cache() { $mock = $this->getMockBuilder( 'Plural_Forms' ) ->setMethods( array( 'execute' ) ) ->setConstructorArgs( array( 'n != 1' ) ) ->getMock(); $mock->expects( $this->once() ) ->method( 'execute' ) ->with( $this->identicalTo( 2 ) ) ->will( $this->returnValue( 1 ) ); $first = $mock->get( 2 ); $second = $mock->get( 2 ); $this->assertSame( $first, $second ); }