2017 © Pedro Peláez
 

library demeanor

A testing framework/harness that supports Spec and XUnit style tests

image

demeanor/demeanor

A testing framework/harness that supports Spec and XUnit style tests

  • Monday, September 8, 2014
  • by chrisguitarguy
  • Repository
  • 1 Watchers
  • 5 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Demeanor

Build Status, (*1)

Demeanor is a multi-paradigm test harness for PHP 5.4+ that allows you to write Spec, XUnit-style, and PHPT tests., (*2)

See the documentation for a getting started guide., (*3)

Spec Test Example

it('should throw an exception', function (TestContext $ctx) {
    $ctx->expectException('Exception');
    throw new \Exception();
});

$this->describe('#ASubFeature', function () {
    $this->it('should always be true', function () {
        Assert::assertTrue(true);
    });
});
```

## XUnit-Style Test Example

```php

--FILE--

--EXPECTF--
this is the test code
here %d

License (Apache)

Copyright 2014 Christopher Davis, (*4)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at, (*5)

http://www.apache.org/licenses/LICENSE-2.0, (*6)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License., (*7)

The Versions

08/09 2014

dev-master

9999999-dev http://docs.demeanorphp.org/

A testing framework/harness that supports Spec and XUnit style tests

  Sources   Download

Apache-2.0

The Requires

 

test testing xunit demeanor

30/07 2014

0.4

0.4.0.0 http://docs.demeanorphp.org/

A testing framework/harness that supports Spec and XUnit style tests

  Sources   Download

Apache-2.0

The Requires

 

test testing xunit demeanor