Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let IDE redirect to covered method #136

Merged
merged 1 commit into from Feb 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions tests/Cron/AbstractFieldTest.php
Expand Up @@ -11,7 +11,7 @@
class AbstractFieldTest extends PHPUnit_Framework_TestCase
{
/**
* @covers Cron\AbstractField::isRange
* @covers \Cron\AbstractField::isRange
*/
public function testTestsIfRange()
{
Expand All @@ -21,7 +21,7 @@ public function testTestsIfRange()
}

/**
* @covers Cron\AbstractField::isIncrementsOfRanges
* @covers \Cron\AbstractField::isIncrementsOfRanges
*/
public function testTestsIfIncrementsOfRanges()
{
Expand All @@ -33,7 +33,7 @@ public function testTestsIfIncrementsOfRanges()
}

/**
* @covers Cron\AbstractField::isInRange
* @covers \Cron\AbstractField::isInRange
*/
public function testTestsIfInRange()
{
Expand All @@ -46,7 +46,7 @@ public function testTestsIfInRange()
}

/**
* @covers Cron\AbstractField::isInIncrementsOfRanges
* @covers \Cron\AbstractField::isInIncrementsOfRanges
*/
public function testTestsIfInIncrementsOfRanges()
{
Expand All @@ -70,7 +70,7 @@ public function testTestsIfInIncrementsOfRanges()
}

/**
* @covers Cron\AbstractField::isSatisfied
* @covers \Cron\AbstractField::isSatisfied
*/
public function testTestsIfSatisfied()
{
Expand Down
70 changes: 35 additions & 35 deletions tests/Cron/CronExpressionTest.php
Expand Up @@ -14,7 +14,7 @@
class CronExpressionTest extends PHPUnit_Framework_TestCase
{
/**
* @covers Cron\CronExpression::factory
* @covers \Cron\CronExpression::factory
*/
public function testFactoryRecognizesTemplates()
{
Expand All @@ -24,9 +24,9 @@ public function testFactoryRecognizesTemplates()
}

/**
* @covers Cron\CronExpression::__construct
* @covers Cron\CronExpression::getExpression
* @covers Cron\CronExpression::__toString
* @covers \Cron\CronExpression::__construct
* @covers \Cron\CronExpression::getExpression
* @covers \Cron\CronExpression::__toString
*/
public function testParsesCronSchedule()
{
Expand All @@ -49,8 +49,8 @@ public function testParsesCronSchedule()
}

/**
* @covers Cron\CronExpression::__construct
* @covers Cron\CronExpression::getExpression
* @covers \Cron\CronExpression::__construct
* @covers \Cron\CronExpression::getExpression
* @dataProvider scheduleWithDifferentSeparatorsProvider
*/
public function testParsesCronScheduleWithAnySpaceCharsAsSeparators($schedule, array $expected)
Expand Down Expand Up @@ -80,9 +80,9 @@ public static function scheduleWithDifferentSeparatorsProvider()
}

/**
* @covers Cron\CronExpression::__construct
* @covers Cron\CronExpression::setExpression
* @covers Cron\CronExpression::setPart
* @covers \Cron\CronExpression::__construct
* @covers \Cron\CronExpression::setExpression
* @covers \Cron\CronExpression::setPart
* @expectedException InvalidArgumentException
*/
public function testInvalidCronsWillFail()
Expand All @@ -92,7 +92,7 @@ public function testInvalidCronsWillFail()
}

/**
* @covers Cron\CronExpression::setPart
* @covers \Cron\CronExpression::setPart
* @expectedException InvalidArgumentException
*/
public function testInvalidPartsWillFail()
Expand Down Expand Up @@ -178,15 +178,15 @@ public function scheduleProvider()
}

/**
* @covers Cron\CronExpression::isDue
* @covers Cron\CronExpression::getNextRunDate
* @covers Cron\DayOfMonthField
* @covers Cron\DayOfWeekField
* @covers Cron\MinutesField
* @covers Cron\HoursField
* @covers Cron\MonthField
* @covers Cron\YearField
* @covers Cron\CronExpression::getRunDate
* @covers \Cron\CronExpression::isDue
* @covers \Cron\CronExpression::getNextRunDate
* @covers \Cron\DayOfMonthField
* @covers \Cron\DayOfWeekField
* @covers \Cron\MinutesField
* @covers \Cron\HoursField
* @covers \Cron\MonthField
* @covers \Cron\YearField
* @covers \Cron\CronExpression::getRunDate
* @dataProvider scheduleProvider
*/
public function testDeterminesIfCronIsDue($schedule, $relativeTime, $nextRun, $isDue)
Expand All @@ -206,7 +206,7 @@ public function testDeterminesIfCronIsDue($schedule, $relativeTime, $nextRun, $i
}

/**
* @covers Cron\CronExpression::isDue
* @covers \Cron\CronExpression::isDue
*/
public function testIsDueHandlesDifferentDates()
{
Expand All @@ -218,7 +218,7 @@ public function testIsDueHandlesDifferentDates()
}

/**
* @covers Cron\CronExpression::isDue
* @covers \Cron\CronExpression::isDue
*/
public function testIsDueHandlesDifferentTimezones()
{
Expand All @@ -245,7 +245,7 @@ public function testIsDueHandlesDifferentTimezones()
}

/**
* @covers Cron\CronExpression::getPreviousRunDate
* @covers \Cron\CronExpression::getPreviousRunDate
*/
public function testCanGetPreviousRunDates()
{
Expand All @@ -266,7 +266,7 @@ public function testCanGetPreviousRunDates()
}

/**
* @covers Cron\CronExpression::getMultipleRunDates
* @covers \Cron\CronExpression::getMultipleRunDates
*/
public function testProvidesMultipleRunDates()
{
Expand All @@ -280,8 +280,8 @@ public function testProvidesMultipleRunDates()
}

/**
* @covers Cron\CronExpression::getMultipleRunDates
* @covers Cron\CronExpression::setMaxIterationCount
* @covers \Cron\CronExpression::getMultipleRunDates
* @covers \Cron\CronExpression::setMaxIterationCount
*/
public function testProvidesMultipleRunDatesForTheFarFuture() {
// Fails with the default 1000 iteration limit
Expand All @@ -301,7 +301,7 @@ public function testProvidesMultipleRunDatesForTheFarFuture() {
}

/**
* @covers Cron\CronExpression
* @covers \Cron\CronExpression
*/
public function testCanIterateOverNextRuns()
{
Expand All @@ -325,7 +325,7 @@ public function testCanIterateOverNextRuns()
}

/**
* @covers Cron\CronExpression::getRunDate
* @covers \Cron\CronExpression::getRunDate
*/
public function testSkipsCurrentDateByDefault()
{
Expand All @@ -337,7 +337,7 @@ public function testSkipsCurrentDateByDefault()
}

/**
* @covers Cron\CronExpression::getRunDate
* @covers \Cron\CronExpression::getRunDate
* @ticket 7
*/
public function testStripsForSeconds()
Expand All @@ -348,7 +348,7 @@ public function testStripsForSeconds()
}

/**
* @covers Cron\CronExpression::getRunDate
* @covers \Cron\CronExpression::getRunDate
*/
public function testFixesPhpBugInDateIntervalMonth()
{
Expand Down Expand Up @@ -386,7 +386,7 @@ public function testIssue20() {
}

/**
* @covers Cron\CronExpression::getRunDate
* @covers \Cron\CronExpression::getRunDate
*/
public function testKeepOriginalTime()
{
Expand All @@ -398,11 +398,11 @@ public function testKeepOriginalTime()
}

/**
* @covers Cron\CronExpression::__construct
* @covers Cron\CronExpression::factory
* @covers Cron\CronExpression::isValidExpression
* @covers Cron\CronExpression::setExpression
* @covers Cron\CronExpression::setPart
* @covers \Cron\CronExpression::__construct
* @covers \Cron\CronExpression::factory
* @covers \Cron\CronExpression::isValidExpression
* @covers \Cron\CronExpression::setExpression
* @covers \Cron\CronExpression::setPart
*/
public function testValidationWorks()
{
Expand Down
6 changes: 3 additions & 3 deletions tests/Cron/DayOfMonthFieldTest.php
Expand Up @@ -12,7 +12,7 @@
class DayOfMonthFieldTest extends PHPUnit_Framework_TestCase
{
/**
* @covers Cron\DayOfMonthField::validate
* @covers \Cron\DayOfMonthField::validate
*/
public function testValidatesField()
{
Expand All @@ -24,7 +24,7 @@ public function testValidatesField()
}

/**
* @covers Cron\DayOfMonthField::isSatisfiedBy
* @covers \Cron\DayOfMonthField::isSatisfiedBy
*/
public function testChecksIfSatisfied()
{
Expand All @@ -33,7 +33,7 @@ public function testChecksIfSatisfied()
}

/**
* @covers Cron\DayOfMonthField::increment
* @covers \Cron\DayOfMonthField::increment
*/
public function testIncrementsDate()
{
Expand Down
14 changes: 7 additions & 7 deletions tests/Cron/DayOfWeekFieldTest.php
Expand Up @@ -12,7 +12,7 @@
class DayOfWeekFieldTest extends PHPUnit_Framework_TestCase
{
/**
* @covers Cron\DayOfWeekField::validate
* @covers \Cron\DayOfWeekField::validate
*/
public function testValidatesField()
{
Expand All @@ -25,7 +25,7 @@ public function testValidatesField()
}

/**
* @covers Cron\DayOfWeekField::isSatisfiedBy
* @covers \Cron\DayOfWeekField::isSatisfiedBy
*/
public function testChecksIfSatisfied()
{
Expand All @@ -34,7 +34,7 @@ public function testChecksIfSatisfied()
}

/**
* @covers Cron\DayOfWeekField::increment
* @covers \Cron\DayOfWeekField::increment
*/
public function testIncrementsDate()
{
Expand All @@ -49,7 +49,7 @@ public function testIncrementsDate()
}

/**
* @covers Cron\DayOfWeekField::isSatisfiedBy
* @covers \Cron\DayOfWeekField::isSatisfiedBy
* @expectedException InvalidArgumentException
* @expectedExceptionMessage Weekday must be a value between 0 and 7. 12 given
*/
Expand All @@ -60,7 +60,7 @@ public function testValidatesHashValueWeekday()
}

/**
* @covers Cron\DayOfWeekField::isSatisfiedBy
* @covers \Cron\DayOfWeekField::isSatisfiedBy
* @expectedException InvalidArgumentException
* @expectedExceptionMessage There are never more than 5 of a given weekday in a month
*/
Expand All @@ -71,7 +71,7 @@ public function testValidatesHashValueNth()
}

/**
* @covers Cron\DayOfWeekField::validate
* @covers \Cron\DayOfWeekField::validate
*/
public function testValidateWeekendHash()
{
Expand All @@ -87,7 +87,7 @@ public function testValidateWeekendHash()
}

/**
* @covers Cron\DayOfWeekField::isSatisfiedBy
* @covers \Cron\DayOfWeekField::isSatisfiedBy
*/
public function testHandlesZeroAndSevenDayOfTheWeekValues()
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Cron/FieldFactoryTest.php
Expand Up @@ -11,7 +11,7 @@
class FieldFactoryTest extends PHPUnit_Framework_TestCase
{
/**
* @covers Cron\FieldFactory::getField
* @covers \Cron\FieldFactory::getField
*/
public function testRetrievesFieldInstances()
{
Expand All @@ -32,7 +32,7 @@ public function testRetrievesFieldInstances()
}

/**
* @covers Cron\FieldFactory::getField
* @covers \Cron\FieldFactory::getField
* @expectedException InvalidArgumentException
*/
public function testValidatesFieldPosition()
Expand Down
8 changes: 4 additions & 4 deletions tests/Cron/HoursFieldTest.php
Expand Up @@ -12,7 +12,7 @@
class HoursFieldTest extends PHPUnit_Framework_TestCase
{
/**
* @covers Cron\HoursField::validate
* @covers \Cron\HoursField::validate
*/
public function testValidatesField()
{
Expand All @@ -23,7 +23,7 @@ public function testValidatesField()
}

/**
* @covers Cron\HoursField::increment
* @covers \Cron\HoursField::increment
*/
public function testIncrementsDate()
{
Expand All @@ -38,7 +38,7 @@ public function testIncrementsDate()
}

/**
* @covers Cron\HoursField::increment
* @covers \Cron\HoursField::increment
*/
public function testIncrementsDateWithThirtyMinuteOffsetTimezone()
{
Expand All @@ -56,7 +56,7 @@ public function testIncrementsDateWithThirtyMinuteOffsetTimezone()
}

/**
* @covers Cron\HoursField::increment
* @covers \Cron\HoursField::increment
*/
public function testIncrementDateWithFifteenMinuteOffsetTimezone()
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Cron/MinutesFieldTest.php
Expand Up @@ -12,7 +12,7 @@
class MinutesFieldTest extends PHPUnit_Framework_TestCase
{
/**
* @covers Cron\MinutesField::validate
* @covers \Cron\MinutesField::validate
*/
public function testValidatesField()
{
Expand All @@ -23,7 +23,7 @@ public function testValidatesField()
}

/**
* @covers Cron\MinutesField::increment
* @covers \Cron\MinutesField::increment
*/
public function testIncrementsDate()
{
Expand Down