From 3904c942d2c7ff3f2776f84a28ed750d7469558d Mon Sep 17 00:00:00 2001 From: Mark Davidson Date: Wed, 11 Jan 2017 10:46:00 +0000 Subject: [PATCH] Correct variable names in specification test Correct variable names to reflect the specifications being tested. --- .../Specification/Tests/SpecificationTest.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Behavioral/Specification/Tests/SpecificationTest.php b/Behavioral/Specification/Tests/SpecificationTest.php index d7676a4..e106839 100644 --- a/Behavioral/Specification/Tests/SpecificationTest.php +++ b/Behavioral/Specification/Tests/SpecificationTest.php @@ -27,20 +27,20 @@ class SpecificationTest extends \PHPUnit_Framework_TestCase $spec1 = new PriceSpecification(50, 100); $spec2 = new PriceSpecification(80, 200); - $orSpec = new AndSpecification($spec1, $spec2); + $andSpec = new AndSpecification($spec1, $spec2); - $this->assertFalse($orSpec->isSatisfiedBy(new Item(150))); - $this->assertFalse($orSpec->isSatisfiedBy(new Item(1))); - $this->assertFalse($orSpec->isSatisfiedBy(new Item(51))); - $this->assertTrue($orSpec->isSatisfiedBy(new Item(100))); + $this->assertFalse($andSpec->isSatisfiedBy(new Item(150))); + $this->assertFalse($andSpec->isSatisfiedBy(new Item(1))); + $this->assertFalse($andSpec->isSatisfiedBy(new Item(51))); + $this->assertTrue($andSpec->isSatisfiedBy(new Item(100))); } public function testCanNot() { $spec1 = new PriceSpecification(50, 100); - $orSpec = new NotSpecification($spec1); + $notSpec = new NotSpecification($spec1); - $this->assertTrue($orSpec->isSatisfiedBy(new Item(150))); - $this->assertFalse($orSpec->isSatisfiedBy(new Item(50))); + $this->assertTrue($notSpec->isSatisfiedBy(new Item(150))); + $this->assertFalse($notSpec->isSatisfiedBy(new Item(50))); } }