Registry / testing / nunomaduro-laravel-mojito

nunomaduro-laravel-mojito

JSON →
library0.2.10phppackagistunverified

A lightweight package for testing Laravel views with elegant assertions.

composer require nunomaduro/laravel-mojito
INSTALL
IMPORT
SIG · NUNOMADURO-LARAVEL
N
nunomaduro-laravel-mojito
testingphpv0.2.10
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

InteractsWithViews
use NunoMaduro\LaravelMojito\InteractsWithViews;

Assert that a view contains specific text.

<?php namespace Tests\Feature; use Tests\TestCase; use NunoMaduro\LaravelMojito\InteractsWithViews; class ViewTest extends TestCase { use InteractsWithViews; public function test_view_contains_text() { $this->assertView('welcome')->contains('Laravel'); } }
Debug
Known issues
breakingOnly works with Laravel 5.5+ and PHP 7.1+.
fix
Upgrade Laravel or PHP version.
affects: >=0.1.0
Upgrade
Version history
0.2.10latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Amazon
1
Resources
nunomaduro-laravel-mojito — pip install nunomaduro-laravel-mojito · libregistry