Skip to content

Commit

Permalink
Reorder arguments in some assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
johanmeiring committed Oct 17, 2016
1 parent 71a2cf6 commit 9bccdc5
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/TestCase/Utility/InflectorTest.php
Expand Up @@ -347,13 +347,13 @@ public function testInflectingMultiWordIrregulars()
'rules' => [],
]);

$this->assertEquals(Inflector::singularize('wisdom teeth'), 'wisdom tooth');
$this->assertEquals(Inflector::singularize('wisdom-teeth'), 'wisdom-tooth');
$this->assertEquals(Inflector::singularize('wisdom_teeth'), 'wisdom_tooth');
$this->assertEquals('wisdom tooth', Inflector::singularize('wisdom teeth'));
$this->assertEquals('wisdom-tooth', Inflector::singularize('wisdom-teeth'));
$this->assertEquals('wisdom_tooth', Inflector::singularize('wisdom_teeth'));

$this->assertEquals(Inflector::pluralize('sweet potato'), 'sweet potatoes');
$this->assertEquals(Inflector::pluralize('sweet-potato'), 'sweet-potatoes');
$this->assertEquals(Inflector::pluralize('sweet_potato'), 'sweet_potatoes');
$this->assertEquals('sweet potatoes', Inflector::pluralize('sweet potato'));
$this->assertEquals('sweet-potatoes', Inflector::pluralize('sweet-potato'));
$this->assertEquals('sweet_potatoes', Inflector::pluralize('sweet_potato'));
}

/**
Expand Down Expand Up @@ -484,14 +484,14 @@ public function testUnderscore()
$this->assertSame('test_thing_extra', Inflector::underscore('TestThingExtra'));
$this->assertSame('test_thing_extra', Inflector::underscore('testThingExtra'));
$this->assertSame('test_this_thing', Inflector::underscore('test-this-thing'));
$this->assertSame(Inflector::underscore('testThingExtrå'), 'test_thing_extrå');
$this->assertSame('test_thing_extrå', Inflector::underscore('testThingExtrå'));

// Identical checks test the cache code path.
$this->assertSame('test_thing', Inflector::underscore('TestThing'));
$this->assertSame('test_thing', Inflector::underscore('testThing'));
$this->assertSame('test_thing_extra', Inflector::underscore('TestThingExtra'));
$this->assertSame('test_thing_extra', Inflector::underscore('testThingExtra'));
$this->assertSame(Inflector::underscore('testThingExtrå'), 'test_thing_extrå');
$this->assertSame('test_thing_extrå', Inflector::underscore('testThingExtrå'));

// Test stupid values
$this->assertSame('', Inflector::underscore(''));
Expand Down Expand Up @@ -592,8 +592,8 @@ public function testHumanization()
$this->assertEquals('File Systems', Inflector::humanize('file_systems'));
$this->assertSame('', Inflector::humanize(null));
$this->assertSame('', Inflector::humanize(false));
$this->assertSame(Inflector::humanize('hello_wörld'), 'Hello Wörld');
$this->assertSame(Inflector::humanize('福岡_city'), '福岡 City');
$this->assertSame('Hello Wörld', Inflector::humanize('hello_wörld'));
$this->assertSame('福岡 City', Inflector::humanize('福岡_city'));
}

/**
Expand Down

0 comments on commit 9bccdc5

Please sign in to comment.