Skip to content

Commit

Permalink
More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Apr 11, 2020
1 parent 7e8f9b0 commit 72ec561
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 22 deletions.
9 changes: 4 additions & 5 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
colors="true"
stopOnFailure="false"
bootstrap="./tests/bootstrap.php"
bootstrap="tests/bootstrap.php"
>

<testsuites>
<testsuite name="BootstrapUI Test Cases">
<directory>./tests/</directory>
<testsuite name="BootstrapUI">
<directory>tests/</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">./src/</directory>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
</phpunit>
15 changes: 15 additions & 0 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,19 @@ class Plugin extends BasePlugin
* @var string
*/
protected $name = 'BootstrapUI';

/**
* @var bool
*/
protected $bootstrapEnabled = false;

/**
* @var bool
*/
protected $routesEnabled = false;

/**
* @var bool
*/
protected $consoleEnabled = false;
}
6 changes: 3 additions & 3 deletions tests/TestCase/View/Helper/BreadcrumbsHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ class BreadcrumbsHelperTest extends TestCase
/**
* @var View
*/
public $View;
protected $View;

/**
* @var HtmlHelper
* @var \BootstrapUI\View\Helper\BreadcrumbsHelper
*/
public $Breadcrumbs;
protected $Breadcrumbs;

public function setUp()
{
Expand Down
6 changes: 3 additions & 3 deletions tests/TestCase/View/Helper/FlashHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ class FlashHelperTest extends TestCase
/**
* @var View
*/
public $View;
protected $View;

/**
* @var FlashHelper
*/
public $Flash;
protected $Flash;

/**
* @var Session
*/
public $session;
protected $session;

/**
* setUp method
Expand Down
6 changes: 3 additions & 3 deletions tests/TestCase/View/Helper/FormHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ class FormHelperTest extends TestCase
/**
* @var View
*/
public $View;
protected $View;

/**
* @var FormHelper
*/
public $Form;
protected $Form;

/**
* @var array
*/
public $article;
protected $article;

public function setUp()
{
Expand Down
6 changes: 3 additions & 3 deletions tests/TestCase/View/Helper/HtmlHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ class HtmlHelperTest extends TestCase
/**
* @var View
*/
public $View;
protected $View;

/**
* @var HtmlHelper
*/
public $Html;
protected $Html;

/**
* @var BreadcrumbsHelper
*/
public $Breadcrumbs;
protected $Breadcrumbs;

public function setUp()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/View/Helper/OptionsAwareTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class OptionsAwareTraitTest extends TestCase
/**
* @var OptionsAwareTrait
*/
public $object;
protected $object;

/**
* setUp method
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/View/UIViewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class UIViewTest extends TestCase
/**
* @var UIView
*/
public $View;
protected $View;

/**
* setUp method
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/View/UIViewTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class UIViewTraitTest extends TestCase
/**
* @var UIView
*/
public $View;
protected $View;

/**
* setUp method
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/View/Widget/ButtonWidgetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ class ButtonWidgetTest extends TestCase
/**
* @var StringTemplate
*/
public $templates;
protected $templates;

/**
* @var ContextInterface
*/
public $context;
protected $context;

/**
* setUp method
Expand Down

0 comments on commit 72ec561

Please sign in to comment.