-
Notifications
You must be signed in to change notification settings - Fork 16
Running Test Cases
To run test type:
vendor\bin\phpunit --display-all-issues --testdox
PHPUnit 11.5.43 by Sebastian Bergmann and contributors.
Runtime: PHP 8.4.14
Configuration: phpunit.xml
.......................................... 42 /
Time: 00:00.216, Memory: 6.00 MB
Bean
✔ Bean interface defines expected methods
Bean Adapter
✔ Adapter delegates calls to underlying bean
Bean User
✔ Bean user interface defines accessors
Controller
✔ Get name returns fully qualified class name
✔ Set view updates current view
✔ Set model updates current model
✔ Set observer polling interval changes only when unset
✔ Reset observers clears internal counters
✔ Get returns full content when all requested
✔ Get returns specific section when requested
✔ Autorun is invoked for main controller
✔ Get sub system detects current subsystem
Data Repeater (framework\components\DataRepeater)
✔ Constructor with no parameters
✔ Constructor with view and model no block no data list
✔ Constructor with block and data list
✔ Constructor with block no data list
✔ Constructor with all null parameters
Dispatcher
✔ Dispatcher parses url segments into properties
✔ Dispatcher supports subsystems
✔ Underscore to camel case converts seo names
Loader
✔ Get directories merges subsystem paths
✔ Get current sub system detects longest match
✔ List folders returns nested directories
Model
✔ Set and get result set
✔ Envelope sql wraps current query
RBAC
✔ Set record permission grants add when permission present
✔ Set record permission leaves flag false when permission missing
User
✔ Getters return assigned values
✔ Is logged checks mandatory fields
✔ Validate token honors expiration window
Validator
✔ Required
✔ Minlength and maxlength
✔ Email and active email
✔ Url and active url
✔ Ip should validate ipv4 and ipv6
✔ Alpha and variants
✔ Alphanum hexadecimal numeric
✔ Alphanum hexadecimal numeric
✔ Matches should compare two fields
View
✔ Set var replaces placeholder in template
✔ Hide removes specific block
✔ Replace tpl overrides content
✔ Open block then parse then close then show
Tests: 42, Assertions: 119