isEmpty() 공개 메소드

Returns if cart is empty
public isEmpty ( ) : boolean
리턴 boolean
예제 #1
0
 function testEmpty()
 {
     $this->setUp();
     $cart = new EShoppingCart();
     $this->assertTrue($cart->isEmpty());
     $book = Book::model()->findByPk(1);
     $cart->put($book);
     $this->assertFalse($cart->isEmpty());
 }