← all fixtures
php-php-fig-log-deleted-a-class
PHP
View before/after files on GitHub
Upstream commit php-fig-log@e1cb6ec
Psr/Log/Test/LoggerInterfaceTest.php
●
unmarked
●
matched
●
updated
●
matched, not identical
●
moved, unchanged
●
deleted
●
inserted
any 3:2
multi-map group: any pairing of the 3 with the 2 is valid, one is shown
all 3:1
all-to-all group: each of the 3 corresponds to the 1
inserted
deleted
updated
moved
click a highlight to reveal its counterpart
Split
Code
Tree
Before
…
lines 1–133 unchanged (133 lines)
134
'critical Uncaught Exception!'
135
);
136
$this->assertEquals($expected, $this->getLogs());
137
}
138
}
139
140
class DummyTest
141
{
142
public function __toString()
143
{
144
return 'DummyTest';
145
}
146
}
147
After
…
lines 1–132 unchanged (132 lines)
133
'warning Random message',
134
'critical Uncaught Exception!'
135
);
136
$this->assertEquals($expected, $this->getLogs());
137
}
138
}
139
Before
program
php_tag "<?php"
namespace_definition
namespace "namespace"
namespace_name
name "Psr"
\ "\\"
name "Log"
\ "\\"
name "Test"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Psr"
\ "\\"
name "Log"
\ "\\"
name "LoggerInterface"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Psr"
\ "\\"
name "Log"
\ "\\"
name "LogLevel"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "PHPUnit"
\ "\\"
name "Framework"
\ "\\"
name "TestCase"
; ";"
comment "/**\n * Provides a base test class for ensuring compliance wi"...
class_declaration (+1218 nodes collapsed)
class_declaration
class "class"
name "DummyTest"
declaration_list
{ "{"
method_declaration
visibility_modifier
public "public"
function "function"
name "__toString"
formal_parameters
( "("
) ")"
compound_statement
{ "{"
return_statement
return "return"
string
' "'"
string_content "DummyTest"
' "'"
; ";"
} "}"
} "}"
After
program
php_tag "<?php"
namespace_definition
namespace "namespace"
namespace_name
name "Psr"
\ "\\"
name "Log"
\ "\\"
name "Test"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Psr"
\ "\\"
name "Log"
\ "\\"
name "LoggerInterface"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Psr"
\ "\\"
name "Log"
\ "\\"
name "LogLevel"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "PHPUnit"
\ "\\"
name "Framework"
\ "\\"
name "TestCase"
; ";"
comment "/**\n * Provides a base test class for ensuring compliance wi"...
class_declaration (+1218 nodes collapsed)
Keybindings
j / k
next / previous visible node (tree panels)
h / l
collapse / expand the focused node
g / G
jump to first / last visible node
Tab
switch focus between Before/After panels
/
search: jump to next node whose text contains a given string
a
jump the other panel to this node's mapped counterpart
i
hide identical matches, showing only inserted/deleted/updated nodes and their ancestors
v
cycle the view: split / code only / tree only
p
cycle what the code view renders: the node mapping, then each human painting
r
mark this fixture as reviewed, or forget the mark (kept in this browser only)
n
open a random fixture not yet marked as reviewed
?
toggle this help
Search (plain substring, no regex):