| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function tryToTest(AcceptanceTester $I) |
||
| 17 | { |
||
| 18 | $I->wantTo('perform actions and see result'); |
||
| 19 | $I->amOnPage('/'); |
||
| 20 | $I->see('くらしを楽しむライフスタイルグッズ', '.copy'); |
||
| 21 | |||
| 22 | $shopName = $I->grabFromDatabase('dtb_base_info', 'shop_name'); |
||
| 23 | $I->assertEquals('EC-CUBE3 SHOP', $shopName); |
||
| 24 | |||
| 25 | $products = $I->grabFromDatabase('dtb_product', 'status', array('product_id'=>1)); |
||
| 26 | codecept_debug($products); |
||
| 27 | |||
| 28 | $bi = Fixtures::get('baseinfo'); |
||
| 29 | codecept_debug($bi->getShopName()); |
||
| 30 | foreach (Fixtures::get('categories') as $category) { |
||
| 31 | codecept_debug($category->getName()); |
||
| 32 | } |
||
| 33 | } |
||
| 34 | } |
||
| 35 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.