[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/tests/phpunit/testcases/ -> test_deprecated.php (source)

   1  <?php
   2  
   3  class GP_Test_Deprecated extends GP_UnitTestCase {
   4  
   5  	function test_gp_parity_factory() {
   6          $gen        = gp_parity_factory();
   7          $concurrent = gp_parity_factory();
   8  
   9          $this->assertEquals( "odd", $gen() );
  10          $this->assertEquals( "odd", $concurrent() );
  11          $this->assertEquals( "even", $gen() );
  12          $this->assertEquals( "odd", $gen() );
  13          $this->assertEquals( "even", $concurrent() );
  14          $this->assertEquals( "odd", $concurrent() );
  15          $this->assertEquals( "even", $gen() );
  16          $this->assertEquals( "even", $concurrent() );
  17      }
  18  
  19  }


Generated: Wed Oct 4 01:02:16 2017 Cross-referenced by PHPXref 0.7.1