diff --git a/CHANGELOG.md b/CHANGELOG.md index aced63e..fffcce7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Change Log All notable changes to this project will be documented in this file. +## [3.4.2] - 2019-11-16 +### Changed +- Removed a build failure by using a newer version of PHPUnit + ## [3.4.1] - 2019-11-16 ### Changed - Optimized performance by using fully-qualified function calls, thanks to [draco2003](https://github.com/draco2003) diff --git a/composer.json b/composer.json index ff46648..3b4b619 100644 --- a/composer.json +++ b/composer.json @@ -29,6 +29,6 @@ "ext-json": "*" }, "require-dev": { - "phpunit/phpunit": "^7.5" + "phpunit/phpunit": "^8.4.3" } } diff --git a/tests/TrainerTest.php b/tests/TrainerTest.php index 71f28ef..e0db09a 100644 --- a/tests/TrainerTest.php +++ b/tests/TrainerTest.php @@ -41,53 +41,48 @@ public function testFileIsWriteable() } } - /** - * @expectedException \LogicException - */ public function testExceptionIsMinLengthGreaterThanMaxLength() { + $this->expectException(\LogicException::class); + $t = new Trainer(); $t->setMaxLength(3); $t->setMinLength(42); } - /** - * @expectedException \LogicException - */ public function testExceptionIsMinLengthLessThanZero() { + $this->expectException(\LogicException::class); + $t = new Trainer(); $t->setMinLength(-42); } - /** - * @expectedException \LogicException - */ public function testExceptionIsMaxLengthLessThanMinLength() { + $this->expectException(\LogicException::class); + $t = new Trainer(); $t->setMinLength(1); $t->setMaxLength(0); } - /** - * @expectedException \LogicException - */ public function testExceptionIsMaxNgramsEqualToZero() { + $this->expectException(\LogicException::class); + $t = new Trainer(); $t->setMaxNGrams(0); } - /** - * @expectedException \LogicException - */ public function testExceptionIsMaxNgramsLessThanZero() { + $this->expectException(\LogicException::class); + $t = new Trainer(); $t->setMaxNGrams(-2);