Skip to content

Commit

Permalink
To camel-case.
Browse files Browse the repository at this point in the history
  • Loading branch information
mingyoung committed Jun 9, 2017
1 parent 5d4b6ac commit 05e1cd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ public static function make($name, array $arguments)
protected static function applicationInstanceKey($name)
{
$applications = [
'wework' => 'we_work.instance',
'weWork' => 'we_work.instance',
'miniProgram' => 'mini_program.instance',
'openPlatform' => 'open_platform.instance',
'officialAccount' => 'official_account.instance',
Expand Down
4 changes: 2 additions & 2 deletions tests/Foundation/ApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ public function testSetCustomAccessToken()
public function testStaticCall()
{
$weworkInstances = [
Application::wework(['client_id' => 'corpid@123', 'client_secret' => 'corpsecret@123', 'debug' => true]),
Application::make('wework', ['debug' => true, 'client_id' => 'corpid@123', 'client_secret' => 'corpsecret@123']),
Application::weWork(['client_id' => 'corpid@123', 'client_secret' => 'corpsecret@123', 'debug' => true]),
Application::make('weWork', ['debug' => true, 'client_id' => 'corpid@123', 'client_secret' => 'corpsecret@123']),
];
foreach ($weworkInstances as $instance) {
$this->assertInstanceOf('EasyWeChat\Applications\WeWork\WeWork', $instance);
Expand Down

0 comments on commit 05e1cd2

Please sign in to comment.