1<?php 2 3/** 4 * This file is part of the Phalcon Framework. 5 * 6 * (c) Phalcon Team <team@phalcon.io> 7 * 8 * For the full copyright and license information, please view the LICENSE.txt 9 * file that was distributed with this source code. 10 */ 11 12declare(strict_types=1); 13 14namespace Phalcon\Test\Unit\Html\Breadcrumbs; 15 16use Phalcon\Html\Breadcrumbs; 17use UnitTester; 18 19class AddCest 20{ 21 /** 22 * Tests Phalcon\Html\Breadcrumbs :: add() 23 * 24 * @author Phalcon Team <team@phalcon.io> 25 * @since 2018-11-13 26 */ 27 public function htmlBreadcrumbsAdd(UnitTester $I) 28 { 29 $I->wantToTest('Html\Breadcrumbs - add()'); 30 31 $breadcrumbs = new Breadcrumbs(); 32 33 $breadcrumbs->add('Home', '/'); 34 35 $I->assertEquals( 36 [ 37 '/' => 'Home', 38 ], 39 $breadcrumbs->toArray() 40 ); 41 } 42} 43