Skip to content

Commit

Permalink
phpunit test passed
Browse files Browse the repository at this point in the history
  • Loading branch information
hafijul233 committed Sep 24, 2022
1 parent c8dae2d commit e521f54
Show file tree
Hide file tree
Showing 240 changed files with 1,122 additions and 1,184 deletions.
91 changes: 0 additions & 91 deletions composer-old.json

This file was deleted.

3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
}
},
"scripts": {
"analyse": "vendor/bin/phpstan analyse"
"analyse": "vendor/bin/phpstan analyse",
"test" : "vendor/bin/phpunit"
},
"config": {
"sort-packages": true,
Expand Down
Empty file added export.txt
Empty file.
34 changes: 20 additions & 14 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,32 @@
executionOrder="random"
failOnWarning="true"
failOnRisky="true"
failOnEmptyTestSuite="true"
beStrictAboutOutputDuringTests="true"
verbose="true"
>
<testsuites>
<testsuite name="VendorName Test Suite">
<testsuite name="Laraflow Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<coverage>
<include>
<!-- <coverage cacheDirectory="/build/cache/PHPUnit"-->
<!-- includeUncoveredFiles="true"-->
<!-- processUncoveredFiles="true"-->
<!-- pathCoverage="false"-->
<!-- ignoreDeprecatedCodeUnits="true"-->
<!-- disableCodeCoverageIgnore="true">-->
<!-- <include>-->
<!-- <directory suffix=".php">./src</directory>-->
<!-- </include>-->
<!-- <report>-->
<!-- <html outputDirectory="build/coverage"/>-->
<!-- <text outputFile="build/coverage.txt"/>-->
<!-- <clover outputFile="build/logs/clover.xml"/>-->
<!-- </report>-->
<!-- </coverage>-->
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
</include>
<report>
<html outputDirectory="build/coverage"/>
<text outputFile="build/coverage.txt"/>
<clover outputFile="build/logs/clover.xml"/>
</report>
</coverage>
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
</whitelist>
</filter>
</phpunit>
8 changes: 4 additions & 4 deletions resources/views/bootstrap3/group/checkbox.blade.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<div class="form-group">
{!! \Form::label($name, $label, $required) !!}
{!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!}

@php
if (isset($required) && $required == true) {
$options['required'] = 'required';
}
@endphp

{!! \Form::checkbox($name, $checked, $required, $attributes) !!}
{!! \Laraflow\Form\Facades\Form::checkbox($name, $checked, $required, $attributes) !!}

{!! \Form::error($name) !!}
{!! \Laraflow\Form\Facades\Form::error($name) !!}
</div>
8 changes: 4 additions & 4 deletions resources/views/bootstrap3/group/date.blade.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div class="form-group">
{!! \Form::label($name, $label, $required) !!}
{!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!}

@php
if (isset($required) && $required == true) {
$options['required'] = 'required';
}
Expand All @@ -17,7 +17,7 @@
</span>
</div>
@endif
{!! \Form::date($name, $default, $required, $attributes) !!}
{!! \Laraflow\Form\Facades\Form::date($name, $default, $required, $attributes) !!}
@if (isset($position) && ($position = 'after'))
<div class="input-group-prepend">
<span class="input-group-text">
Expand All @@ -27,6 +27,6 @@
</span>
</div>
@endif
{!! \Form::error($name) !!}
{!! \Laraflow\Form\Facades\Form::error($name) !!}
</div>
</div>
8 changes: 4 additions & 4 deletions resources/views/bootstrap3/group/email.blade.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div class="form-group">
{!! \Form::label($name, $label, $required) !!}
{!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!}

@php
if (isset($required) && $required == true) {
$options['required'] = 'required';
}
Expand All @@ -17,7 +17,7 @@
</div>
</div>
@endif
{!! \Form::email($name, $default, $required, $attributes) !!}
{!! \Laraflow\Form\Facades\Form::email($name, $default, $required, $attributes) !!}

@if (isset($position) && $position == 'after')
<div class="input-group-append">
Expand All @@ -29,5 +29,5 @@
</div>
@endif
</div>
{!! \Form::error($name) !!}
{!! \Laraflow\Form\Facades\Form::error($name) !!}
</div>
10 changes: 5 additions & 5 deletions resources/views/bootstrap3/group/file.blade.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div class="form-group">
{!! \Form::fLabel($name, $label, $required, ['class' => 'd-block mb-2']) !!}
{!! \Laraflow\Form\Facades\Form::fLabel($name, $label, $required, ['class' => 'd-block mb-2']) !!}
<div class="custom-file">
@php
if (isset($required) && $required == true) {
$options['required'] = 'required';
}
Expand All @@ -16,7 +16,7 @@
</span>
</div>
@endif
{!! \Form::file($name, $required, $attributes) !!}
{!! \Laraflow\Form\Facades\Form::file($name, $required, $attributes) !!}
@if (isset($position) && ($position = 'after'))
<div class="input-group-prepend">
<span class="input-group-text">
Expand All @@ -26,7 +26,7 @@
</span>
</div>
@endif
{!! \Form::label($name, $label, $required, ['class' => 'custom-file-label']) !!}
{!! \Form::error($name) !!}
{!! \Laraflow\Form\Facades\Form::label($name, $label, $required, ['class' => 'custom-file-label']) !!}
{!! \Laraflow\Form\Facades\Form::error($name) !!}
</div>
</div>
8 changes: 4 additions & 4 deletions resources/views/bootstrap3/group/number.blade.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div class="form-group">
{!! \Form::label($name, $label, $required) !!}
{!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!}

@php
if (isset($required) && $required == true) {
$options['required'] = 'required';
}
Expand All @@ -17,7 +17,7 @@
</span>
</div>
@endif
{!! \Form::number($name, $default, $required, $attributes) !!}
{!! \Laraflow\Form\Facades\Form::number($name, $default, $required, $attributes) !!}
@if (isset($position) && ($position = 'after'))
<div class="input-group-prepend">
<span class="input-group-text">
Expand All @@ -27,6 +27,6 @@
</span>
</div>
@endif
{!! \Form::error($name) !!}
{!! \Laraflow\Form\Facades\Form::error($name) !!}
</div>
</div>
8 changes: 4 additions & 4 deletions resources/views/bootstrap3/group/password.blade.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div class="form-group">
{!! \Form::label($name, $label, $required) !!}
{!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!}

@php
if (isset($required) && $required == true) {
$options['required'] = 'required';
}
Expand All @@ -17,7 +17,7 @@
</div>
</div>
@endif
{!! \Form::password($name, $required, $attributes) !!}
{!! \Laraflow\Form\Facades\Form::password($name, $required, $attributes) !!}

@if (isset($position) && $position == 'after')
<div class="input-group-append">
Expand All @@ -29,5 +29,5 @@
</div>
@endif
</div>
{!! \Form::error($name) !!}
{!! \Laraflow\Form\Facades\Form::error($name) !!}
</div>
8 changes: 4 additions & 4 deletions resources/views/bootstrap3/group/radio.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
<label class="custom-control-label" for="customRadio1">Custom radio</label>
</div>
<div class="form-group">
{!! \Form::label($name, $label, $required) !!}
{!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!}

@php
if (isset($required) && $required == true) {
$options['required'] = 'required';
}
@endphp

{!! \Form::radio($name, $checked, $required, $attributes) !!}
{!! \Laraflow\Form\Facades\Form::radio($name, $checked, $required, $attributes) !!}

{!! \Form::error($name) !!}
{!! \Laraflow\Form\Facades\Form::error($name) !!}
</div>
8 changes: 4 additions & 4 deletions resources/views/bootstrap3/group/range.blade.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div class="form-group">
{!! \Form::label($name, $label, $required) !!}
{!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!}

@php
if (isset($required) && $required == true) {
$options['required'] = 'required';
}
Expand All @@ -15,8 +15,8 @@
@endif
</span>
</div>
{!! \Form::range($name, $default, $required, $attributes) !!}
{!! \Laraflow\Form\Facades\Form::range($name, $default, $required, $attributes) !!}

{!! \Form::error($name) !!}
{!! \Laraflow\Form\Facades\Form::error($name) !!}
</div>
</div>
8 changes: 4 additions & 4 deletions resources/views/bootstrap3/group/search.blade.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div class="form-group">
{!! \Form::label($name, $label, $required) !!}
{!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!}

@php
if (isset($required) && $required == true) {
$options['required'] = 'required';
}
Expand All @@ -15,8 +15,8 @@
@endif
</span>
</div>
{!! \Form::search($name, $default, $required, $attributes) !!}
{!! \Laraflow\Form\Facades\Form::search($name, $default, $required, $attributes) !!}

{!! \Form::error($name) !!}
{!! \Laraflow\Form\Facades\Form::error($name) !!}
</div>
</div>
8 changes: 4 additions & 4 deletions resources/views/bootstrap3/group/select.blade.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div class="form-group">
{!! \Form::label($name, $label, $required) !!}
{!! \Laraflow\Form\Facades\Form::label($name, $label, $required) !!}

@php
$options = ['class' => 'form-control custom-select'];
if (isset($required) && $required == true) {
$options['required'] = 'required';
}
Expand All @@ -16,8 +16,8 @@
@endif
</span>
</div>
{!! \Form::select($name, $data, $selected, $required, $attributes) !!}
{!! \Laraflow\Form\Facades\Form::select($name, $data, $selected, $required, $attributes) !!}

{!! \Form::error($name) !!}
{!! \Laraflow\Form\Facades\Form::error($name) !!}
</div>
</div>
Loading

0 comments on commit e521f54

Please sign in to comment.