dev-master
9999999-devUtilities for managing the test environment
MIT
The Development Requires
by Daniel Leech
dev-include_offset_end
dev-include_offset_endUtilities for managing the test environment
MIT
The Development Requires
by Daniel Leech
Wallogit.com
2017 © Pedro Peláez
Utilities for managing the test environment
Set of general test utilties for Phpactor., (*1)
The Workspace class is used to manage a test file workspace., (*2)
$workspace = Workspace::create(__DIR__ . '/workspace'); $workspace->reset(); // creates or deletes then creates the workspace directory
Load a set of test files from a "manifest":, (*3)
$manifest = <<<'EOT'
// File: lib/ClassOne.php
<?php
class ClassOne {}
// File: lib/Foo/ClassTwo.php
<?php namespace Foo;
class ClassTwo {}
EOT
;
$workspace = Workspace::create(__DIR__ . '/workspace');
$workspace->loadManifest($manifest); // create the files in the manifest
Assert::assertTrue($workspace->exists('lib/ClassOne.php'));
Assert::assertTrue($workspace->exists('lib/Foo/ClassTwo.php'));
echo $workspace->getContents('/lib/Foo/ClassTwo.php');
This package is open source and welcomes contributions! Feel free to open a pull request on this repository., (*4)
#phpactor channel on the Slack Symfony Devs channel.Utilities for managing the test environment
MIT
Utilities for managing the test environment
MIT