Object: $result ($this)
Expectation: should or shouldNot
Matcher: Be...()
Types of Matchers:
| <?php | |
| namespace PHPSTORM_META { | |
| $STATIC_METHOD_TYPES = [ | |
| \PHPUnit_Framework_TestCase::createMock('') => [ | |
| "" == "@|PHPUnit_Framework_MockObject_MockObject", | |
| ], | |
| \PHPUnit_Framework_TestCase::getMock('') => [ | |
| "" == "@|PHPUnit_Framework_MockObject_MockObject", | |
| ], |
| <?php | |
| require_once __DIR__ . '/vendor/autoload.php'; | |
| $namespace = 'PutYourProjectNamespaceHere\\'; | |
| foreach (new RegexIterator(new RecursiveIteratorIterator(new RecursiveDirectoryIterator(__DIR__ . '/src')), '/^.+\.php$/i', RecursiveRegexIterator::GET_MATCH) as $file) { | |
| require_once $file[0]; | |
| } |
| <?php | |
| class NamedSpec extends ObjectBehavior | |
| { | |
| function it_exposes_the_name_it_is_constructed_with() | |
| { | |
| $this->beConstructedNamed('Foo'); | |
| $this->getName()->shouldReturn('Foo'); | |
| } |
| <form action="..." data-unsaved-warning> | |
| <!-- Something something the form --> | |
| </form> |
| #!/bin/bash | |
| # Put this file at: .git/hooks/post-checkout | |
| # and make it executable | |
| # You can install it system wide too, see http://stackoverflow.com/a/2293578/685587 | |
| PREV_COMMIT=$1 | |
| POST_COMMIT=$2 | |
| NOCOLOR='\e[0m' |
| # Given | |
| Given I am on [the] homepage | |
| Given I am on "url" | |
| # When | |
| When I go to [the] homepage | |
| When I go to "url" | |
| When I reload the page |
| <?php | |
| /** | |
| * Copyright (c) 2007, Roger Veciana | |
| * All rights reserved. | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions are met: | |
| * | |
| * Redistributions of source code must retain the above copyright notice, this |