Skip to content

Commit

Permalink
Rename signalHandlingEnabled() to isSignalHandlingEnabled()
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Feb 21, 2016
1 parent c432646 commit 59440b6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Loop/AbstractLoop.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public function signal($signo, callable $callback, $data = null)
/**
* @return bool
*/
public function signalHandlingEnabled()
public function isSignalHandlingEnabled()
{
return null !== $this->signalManager;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Loop/Loop.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,5 @@ public function signal($signo, callable $callback, $data = null);
* *
* @return bool
*/
public function signalHandlingEnabled();
public function isSignalHandlingEnabled();
}
4 changes: 2 additions & 2 deletions src/Loop/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ function signal($signo, callable $callback, $data = null)
*
* @return bool
*/
function signalHandlingEnabled()
function isSignalHandlingEnabled()
{
return loop()->signalHandlingEnabled();
return loop()->isSignalHandlingEnabled();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/Loop/AbstractLoopTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,7 @@ public function testRunThrowsAfterThrownExceptionFromTimerCallback()
*/
public function testSignalHandlingEnabled()
{
$this->assertTrue($this->loop->signalHandlingEnabled());
$this->assertTrue($this->loop->isSignalHandlingEnabled());
}

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/Loop/LoopTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,9 @@ public function testSignalHandlingEnabled()
Loop\loop($this->loop);

$this->loop->expects($this->once())
->method('signalHandlingEnabled');
->method('isSignalHandlingEnabled');

Loop\signalHandlingEnabled();
Loop\isSignalHandlingEnabled();
}

/**
Expand Down

0 comments on commit 59440b6

Please sign in to comment.