Skip to content

Commit

Permalink
Rename FluidGenerator FluentGenerator
Browse files Browse the repository at this point in the history
Bug: T111691
  • Loading branch information
addshore committed Sep 7, 2015
1 parent 6dc55f9 commit b7abf24
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ These are the release notes for the [mediawiki-api](README.md).

## Version 0.5.1 (in development)

* Adds Generator interface
* Adds ApiGenerator interface
* Adds AnonymousGenerator implementation of Generator
* Adds FluidGenerator implementation of Generator
* Adds FluentGenerator implementation of Generator

## Version 0.5 (4 September 2015)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* @since 0.5.1
*/
class FluidGenerator implements ApiGenerator {
class FluentGenerator implements ApiGenerator {

private $name;
private $params;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

namespace Mediawiki\Api\Test\Generator;

use Mediawiki\Api\Generator\FluidGenerator;
use Mediawiki\Api\Generator\FluentGenerator;

/**
* @covers \Mediawiki\Api\Generator\FluidGenerator
* @covers \Mediawiki\Api\Generator\FluentGenerator
*/
class FluidGeneratorTest extends \PHPUnit_Framework_TestCase {
class FluentGeneratorTest extends \PHPUnit_Framework_TestCase {

public function testConstructionWithNoGPrefix() {
$generator = new FluidGenerator( 'name' );
$generator = new FluentGenerator( 'name' );
$generator->set( 'foo', 'bar' );

$this->assertEquals(
Expand All @@ -23,7 +23,7 @@ public function testConstructionWithNoGPrefix() {
}

public function testConstructionWithGPrefix() {
$generator = new FluidGenerator( 'name' );
$generator = new FluentGenerator( 'name' );
$generator->set( 'gfoo', 'bar' );

$this->assertEquals(
Expand All @@ -36,7 +36,7 @@ public function testConstructionWithGPrefix() {
}

public function testFluidity() {
$generator = FluidGenerator::factory( 'name' )
$generator = FluentGenerator::factory( 'name' )
->set( 'foo', 'bar' )
->set( 'gcat', 'meow' );

Expand Down

0 comments on commit b7abf24

Please sign in to comment.