| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 22 | 
| Code Lines | 14 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 17 | public function setUp()  | 
            ||
| 18 |     { | 
            ||
| 19 |         $this->useModelSet('ecommerce'); | 
            ||
| 20 | parent::setUp();  | 
            ||
| 21 | |||
| 22 | $this->firstProduct = new ECommerceProduct();  | 
            ||
| 23 |         $this->firstProduct->setName("First Product"); | 
            ||
| 24 | |||
| 25 | $this->firstCategory = new ECommerceCategory();  | 
            ||
| 26 |         $this->firstCategory->setName("Business"); | 
            ||
| 27 | |||
| 28 | $this->secondCategory = new ECommerceCategory();  | 
            ||
| 29 |         $this->secondCategory->setName("Home"); | 
            ||
| 30 | |||
| 31 | $this->firstProduct->addCategory($this->firstCategory);  | 
            ||
| 32 | $this->firstProduct->addCategory($this->secondCategory);  | 
            ||
| 33 | |||
| 34 | $this->_em->persist($this->firstProduct);  | 
            ||
| 35 | |||
| 36 | $this->_em->flush();  | 
            ||
| 37 | $this->_em->clear();  | 
            ||
| 38 | }  | 
            ||
| 39 | |||
| 49 | 
This check marks private properties in classes that are never used. Those properties can be removed.