diff --git a/src/Dev/FunctionalTest.php b/src/Dev/FunctionalTest.php index 2aec8d123..69c2ff7a1 100644 --- a/src/Dev/FunctionalTest.php +++ b/src/Dev/FunctionalTest.php @@ -66,7 +66,7 @@ if (class_exists(IsEqualCanonicalizing::class)) { /** * Set this to true on your sub-class to use the draft site by default for every test in this class. * - * @deprecated 4.2.0:5.0.0 Use ?stage=Stage in your ->get() querystring requests instead + * @deprecated 4.2.0 Use ?stage=Stage in your ->get() querystring requests instead * @var bool */ protected static $use_draft_site = false; @@ -425,7 +425,7 @@ if (class_exists(IsEqualCanonicalizing::class)) { * This is helpful if you're not testing publication functionality and don't want "stage management" cluttering * your test. * - * @deprecated 4.2.0:5.0.0 Use ?stage=Stage querystring arguments instead of useDraftSite + * @deprecated 4.2.0 Use ?stage=Stage querystring arguments instead of useDraftSite * @param bool $enabled toggle the use of the draft site */ public function useDraftSite($enabled = true) @@ -449,11 +449,12 @@ if (class_exists(IsEqualCanonicalizing::class)) { } /** - * @deprecated 4.2.0:5.0.0 Use ?stage=Stage in your querystring arguments instead + * @deprecated 4.2.0 Use ?stage=Stage in your querystring arguments instead * @return bool */ public static function get_use_draft_site() { + Deprecation::notice('4.2.0', 'Use ?stage=Stage in your querystring arguments instead'); return static::$use_draft_site; } } @@ -508,7 +509,7 @@ class FunctionalTest extends SapphireTest implements TestOnly /** * Set this to true on your sub-class to use the draft site by default for every test in this class. * - * @deprecated 4.2.0:5.0.0 Use ?stage=Stage in your ->get() querystring requests instead + * @deprecated 4.2.0 Use ?stage=Stage in your ->get() querystring requests instead * @var bool */ protected static $use_draft_site = false; @@ -869,7 +870,7 @@ class FunctionalTest extends SapphireTest implements TestOnly * This is helpful if you're not testing publication functionality and don't want "stage management" cluttering * your test. * - * @deprecated 4.2.0:5.0.0 Use ?stage=Stage querystring arguments instead of useDraftSite + * @deprecated 4.2.0 Use ?stage=Stage querystring arguments instead of useDraftSite * @param bool $enabled toggle the use of the draft site */ public function useDraftSite($enabled = true) @@ -893,11 +894,12 @@ class FunctionalTest extends SapphireTest implements TestOnly } /** - * @deprecated 4.2.0:5.0.0 Use ?stage=Stage in your querystring arguments instead + * @deprecated 4.2.0 Use ?stage=Stage in your querystring arguments instead * @return bool */ public static function get_use_draft_site() { + Deprecation::notice('4.2.0', 'Use ?stage=Stage in your querystring arguments instead'); return static::$use_draft_site; } } diff --git a/src/Dev/SapphireTest.php b/src/Dev/SapphireTest.php index cda330777..95488c6e2 100644 --- a/src/Dev/SapphireTest.php +++ b/src/Dev/SapphireTest.php @@ -98,7 +98,7 @@ if (class_exists(IsEqualCanonicalizing::class)) { protected static $fixture_file = null; /** - * @deprecated 4.0..5.0 Use FixtureTestState instead + * @deprecated 4.0 Use FixtureTestState instead * @var FixtureFactory */ protected $fixtureFactory; @@ -472,7 +472,7 @@ if (class_exists(IsEqualCanonicalizing::class)) { /** * @return FixtureFactory|false - * @deprecated 4.0.0:5.0.0 + * @deprecated 4.0.0 */ public function getFixtureFactory() { @@ -486,7 +486,7 @@ if (class_exists(IsEqualCanonicalizing::class)) { * Sets a new fixture factory * @param FixtureFactory $factory * @return $this - * @deprecated 4.0.0:5.0.0 + * @deprecated 4.0.0 */ public function setFixtureFactory(FixtureFactory $factory) { @@ -566,7 +566,7 @@ if (class_exists(IsEqualCanonicalizing::class)) { * Once loaded, you can use idFromFixture() and objFromFixture() to get items from the fixture. * Doesn't clear existing fixtures. * @param string $fixtureFile The location of the .yml fixture file, relative to the site base dir - * @deprecated 4.0.0:5.0.0 + * @deprecated 4.0.0 * */ public function loadFixture($fixtureFile) @@ -762,7 +762,7 @@ if (class_exists(IsEqualCanonicalizing::class)) { /** * @param $matches * @param $dataObjectSet - * @deprecated 4.0.0:5.0.0 Use assertListContains() instead + * @deprecated 4.0.0 Use assertListContains() instead * */ public function assertDOSContains($matches, $dataObjectSet) @@ -816,7 +816,7 @@ if (class_exists(IsEqualCanonicalizing::class)) { /** * @param $matches * @param $dataObjectSet - * @deprecated 4.0.0:5.0.0 Use assertListNotContains() instead + * @deprecated 4.0.0 Use assertListNotContains() instead * */ public static function assertNotDOSContains($matches, $dataObjectSet) @@ -864,7 +864,7 @@ if (class_exists(IsEqualCanonicalizing::class)) { /** * @param $matches * @param SS_List $dataObjectSet - * @deprecated 4.0.0:5.0.0 Use assertListEquals() instead + * @deprecated 4.0.0 Use assertListEquals() instead * */ public function assertDOSEquals($matches, $dataObjectSet) @@ -908,7 +908,7 @@ if (class_exists(IsEqualCanonicalizing::class)) { /** * @param $match * @param SS_List $dataObjectSet - * @deprecated 4.0.0:5.0.0 Use assertListAllMatch() instead + * @deprecated 4.0.0 Use assertListAllMatch() instead * */ public function assertDOSAllMatch($match, SS_List $dataObjectSet) @@ -1416,7 +1416,7 @@ class SapphireTest extends PHPUnit_Framework_TestCase implements TestOnly protected static $fixture_file = null; /** - * @deprecated 4.0..5.0 Use FixtureTestState instead + * @deprecated 4.0 Use FixtureTestState instead * @var FixtureFactory */ protected $fixtureFactory; @@ -1793,7 +1793,7 @@ class SapphireTest extends PHPUnit_Framework_TestCase implements TestOnly /** * @return FixtureFactory|false - * @deprecated 4.0.0:5.0.0 + * @deprecated 4.0.0 */ public function getFixtureFactory() { @@ -1807,7 +1807,7 @@ class SapphireTest extends PHPUnit_Framework_TestCase implements TestOnly * Sets a new fixture factory * @param FixtureFactory $factory * @return $this - * @deprecated 4.0.0:5.0.0 + * @deprecated 4.0.0 */ public function setFixtureFactory(FixtureFactory $factory) { @@ -1887,7 +1887,7 @@ class SapphireTest extends PHPUnit_Framework_TestCase implements TestOnly * Once loaded, you can use idFromFixture() and objFromFixture() to get items from the fixture. * Doesn't clear existing fixtures. * @param string $fixtureFile The location of the .yml fixture file, relative to the site base dir - * @deprecated 4.0.0:5.0.0 + * @deprecated 4.0.0 * */ public function loadFixture($fixtureFile) @@ -2110,7 +2110,7 @@ class SapphireTest extends PHPUnit_Framework_TestCase implements TestOnly /** * @param $matches * @param $dataObjectSet - * @deprecated 4.0.0:5.0.0 Use assertListContains() instead + * @deprecated 4.0.0 Use assertListContains() instead * */ public function assertDOSContains($matches, $dataObjectSet) @@ -2164,7 +2164,7 @@ class SapphireTest extends PHPUnit_Framework_TestCase implements TestOnly /** * @param $matches * @param $dataObjectSet - * @deprecated 4.0.0:5.0.0 Use assertListNotContains() instead + * @deprecated 4.0.0 Use assertListNotContains() instead * */ public static function assertNotDOSContains($matches, $dataObjectSet) @@ -2212,7 +2212,7 @@ class SapphireTest extends PHPUnit_Framework_TestCase implements TestOnly /** * @param $matches * @param SS_List $dataObjectSet - * @deprecated 4.0.0:5.0.0 Use assertListEquals() instead + * @deprecated 4.0.0 Use assertListEquals() instead * */ public function assertDOSEquals($matches, $dataObjectSet) @@ -2255,7 +2255,7 @@ class SapphireTest extends PHPUnit_Framework_TestCase implements TestOnly /** * @param $match * @param SS_List $dataObjectSet - * @deprecated 4.0.0:5.0.0 Use assertListAllMatch() instead + * @deprecated 4.0.0 Use assertListAllMatch() instead * */ public function assertDOSAllMatch($match, SS_List $dataObjectSet)