assertTrue($productObject->validateCartItem(array('deleted' => 'n', 'soldOut' => 'n'))); $this->assertFalse($productObject->validateCartItem(array('deleted' => 'n', 'soldOut' => 'y'))); $this->assertFalse($productObject->validateCartItem(array('deleted' => 'y', 'soldOut' => 'n'))); $this->assertFalse($productObject->validateCartItem(array('deleted' => 'y', 'soldOut' => 'y'))); } public function testValidateCartItemAgain() { $productObject = new App_ECommerce_Product_Obj(); $this->assertTrue($productObject->validateCartItem(array('deleted' => 'n', 'soldOut' => 'n'))); $this->assertFalse($productObject->validateCartItem(array('deleted' => 'n', 'soldOut' => 'y'))); $this->assertFalse($productObject->validateCartItem(array('deleted' => 'y', 'soldOut' => 'n'))); $this->assertFalse($productObject->validateCartItem(array('deleted' => 'y', 'soldOut' => 'y'))); } }