function testEmpty() { $this->setUp(); $cart = new EShoppingCart(); $this->assertTrue($cart->isEmpty()); $book = Book::model()->findByPk(1); $cart->put($book); $this->assertFalse($cart->isEmpty()); }